mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Setup: auto include auto generated yaml files
This commit is contained in:
9
setup.py
9
setup.py
@@ -145,7 +145,14 @@ for data in extra_data:
|
|||||||
installfile(Path(data))
|
installfile(Path(data))
|
||||||
|
|
||||||
os.makedirs(buildfolder / "Players", exist_ok=True)
|
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:
|
try:
|
||||||
from maseya import z3pr
|
from maseya import z3pr
|
||||||
|
Reference in New Issue
Block a user