diff --git a/seven_mods.py b/seven_mods.py index 394f421..2fc82cb 100755 --- a/seven_mods.py +++ b/seven_mods.py @@ -251,7 +251,7 @@ def get_loaded_mods(cfg: Config) -> list: ret = [] with os.scandir(internal_mods_path) as it: for entry in it: - if entry.is_symlink() and entry.is_dir(): + if entry.is_symlink() and entry.is_dir() and not entry.name.startswith('.'): # only ret.append(entry.name) return sorted(ret, key = lambda x: x.casefold()) @@ -260,7 +260,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() and entry.name != "__pycache__": + if entry.is_dir() and not entry.name.startswith('.') and entry.name != "__pycache__": ret.append(entry.name) return sorted(ret, key = lambda x: x.casefold())