mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
AutoWorld: don't import __pycache__
This commit is contained in:
@@ -13,7 +13,8 @@ for file in os.scandir(os.path.dirname(__file__)):
|
|||||||
world_folders.append(file.name)
|
world_folders.append(file.name)
|
||||||
world_folders.sort()
|
world_folders.sort()
|
||||||
for world in world_folders:
|
for world in world_folders:
|
||||||
importlib.import_module(f".{world}", "worlds")
|
if not world.startswith("_"): # prevent explicitly loading __pycache__ and allow _* names for non-world folders
|
||||||
|
importlib.import_module(f".{world}", "worlds")
|
||||||
|
|
||||||
from .AutoWorld import AutoWorldRegister
|
from .AutoWorld import AutoWorldRegister
|
||||||
lookup_any_item_id_to_name = {}
|
lookup_any_item_id_to_name = {}
|
||||||
|
Reference in New Issue
Block a user