No longer thinks that __pycache__ is a mod.

This commit is contained in:
Patrick Marsee 2023-01-22 18:55:20 -05:00
parent 252b0b4d43
commit 8094661130

View file

@ -233,7 +233,7 @@ def get_available_mods(cfg: Config) -> list:
ret = [] ret = []
with os.scandir(cfg.mods_dir) as it: with os.scandir(cfg.mods_dir) as it:
for entry in it: for entry in it:
if entry.is_dir(): if entry.is_dir() and entry.name != "__pycache__":
ret.append(entry.name) ret.append(entry.name)
return ret return ret