Skip to content

Commit

Permalink
Setup: also delete old disabled worlds
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Oct 4, 2023
1 parent 7805747 commit e8ec9c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ def run(self):
assert not non_apworlds - set(AutoWorldRegister.world_types), \
f"Unknown world {non_apworlds - set(AutoWorldRegister.world_types)} designated for .apworld"
folders_to_remove: typing.List[str] = []
disabled_worlds_folder = "worlds_disabled"
for entry in os.listdir("worlds_disabled"):
if os.path.isdir(os.path.join(disabled_worlds_folder, entry)):
folders_to_remove.append(entry)
generate_yaml_templates(self.buildfolder / "Players" / "Templates", False)
for worldname, worldtype in AutoWorldRegister.world_types.items():
if worldname not in non_apworlds:
Expand Down

0 comments on commit e8ec9c0

Please sign in to comment.