mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-07 19:08:13 -07:00
start of split
This commit is contained in:
12
worlds/loader.py
Normal file
12
worlds/loader.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import importlib
|
||||
import os
|
||||
world_types = []
|
||||
world_folder = os.path.dirname(__file__)
|
||||
for entry in os.scandir(world_folder):
|
||||
if entry.is_dir():
|
||||
entryname = entry.name
|
||||
if not entryname.startswith("_"):
|
||||
world_module = importlib.import_module("."+entry.name, package="worlds")
|
||||
world_types.append(world_module)
|
||||
print(world_folder)
|
||||
print(world_types)
|
||||
Reference in New Issue
Block a user