mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-06-14 02:16:57 +00:00
Solve the no such file or directory issue
Signed-off-by: Lyes Saadi <33597258+LyesSaadi@users.noreply.github.com>
This commit is contained in:
parent
f3588c778a
commit
edc7d0a133
|
@ -190,6 +190,9 @@ class GradienceApplication(Adw.Application):
|
|||
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_DIR, "user", repo.name))
|
||||
|
||||
|
|
Loading…
Reference in a new issue