Setup: auto include auto generated yaml files

This commit is contained in:
Fabian Dill 2021-10-16 19:40:58 +02:00
parent fdb8ae0cb5
commit d38e1185bb
1 changed files with 8 additions and 1 deletions

View File

@ -145,7 +145,14 @@ for data in extra_data:
installfile(Path(data))
os.makedirs(buildfolder / "Players", exist_ok=True)
shutil.copyfile("playerSettings.yaml", buildfolder / "Players" / "weightedSettings.yaml")
from WebHostLib.options import create
create()
from worlds.AutoWorld import AutoWorldRegister
for worldname, worldtype in AutoWorldRegister.world_types.items():
if not worldtype.hidden:
file_name = worldname+".yaml"
shutil.copyfile(os.path.join("WebHostLib", "static", "generated", "configs", file_name),
buildfolder / "Players" / file_name)
try:
from maseya import z3pr