Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Fix another missing mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
LyesSaadi authored Sep 23, 2022
1 parent edc7d0a commit f89a1d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gradience/presets_manager_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ def reload_pref_group(self):
buglog("file")
# keep compatiblity with old presets
if repo.name.endswith(".json"):
if not os.path.isdir(os.path.join(PRESET_DIR, "user")):
os.mkdir(os.path.join(PRESET_DIR, "user"))

os.rename(repo, os.path.join(
preset_directory, "user", repo.name))

Expand Down

0 comments on commit f89a1d3

Please sign in to comment.