Compare commits
2 commits
a0fb05c319
...
8094661130
Author | SHA1 | Date | |
---|---|---|---|
|
8094661130 | ||
|
252b0b4d43 |
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -194,8 +194,9 @@ class AppFrame(ttk.Frame):
|
|||
|
||||
def command_save_button(self):
|
||||
prof = self.profile_var.get()
|
||||
print(f"prof={prof}")
|
||||
try:
|
||||
self.profiles.profiles[prof] = seven_mods.get_loaded_mods(cfg)
|
||||
self.profiles.profiles[prof] = seven_mods.get_loaded_mods(self.cfg)
|
||||
self.profiles.save_mod_profiles()
|
||||
self.refresh_profile_list()
|
||||
except seven_mods.SevenModsError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue