Skip to content

Commit e7cafe0

Browse files
authored
Merge pull request #206 from chennes/ensureModDirExists
Ensure the Mod dir exists when needed
2 parents 6c618e6 + aefde76 commit e7cafe0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addonmanager_installation_manifest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def __init__(self, catalog: AddonCatalog = None):
8080
self._scan_mod_path_for_extras(catalog)
8181

8282
def _migrate_to_manifest_file(self, catalog: AddonCatalog):
83+
if not os.path.exists(fci.DataPaths().mod_dir):
84+
os.makedirs(fci.DataPaths().mod_dir)
8385
dirs_in_mod = os.listdir(fci.DataPaths().mod_dir)
8486
for addon_id in dirs_in_mod:
8587
branches = []

0 commit comments

Comments
 (0)