From 80946611308e665ac296e6a4e660a135c0469f93 Mon Sep 17 00:00:00 2001 From: Patrick Marsee Date: Sun, 22 Jan 2023 18:55:20 -0500 Subject: [PATCH] No longer thinks that __pycache__ is a mod. --- seven_mods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seven_mods.py b/seven_mods.py index fe9c595..81309b0 100755 --- a/seven_mods.py +++ b/seven_mods.py @@ -233,7 +233,7 @@ def get_available_mods(cfg: Config) -> list: ret = [] with os.scandir(cfg.mods_dir) as it: for entry in it: - if entry.is_dir(): + if entry.is_dir() and entry.name != "__pycache__": ret.append(entry.name) return ret