mirror of https://gitlab.com/bashrc2/epicyon
Check that directory exists
parent
f06d1b20b3
commit
61d0cb1f48
3
theme.py
3
theme.py
|
@ -63,7 +63,8 @@ def importTheme(baseDir: str, filename: str) -> bool:
|
|||
if not os.path.isdir(themeDir):
|
||||
os.mkdir(themeDir)
|
||||
copytree(tempThemeDir, themeDir)
|
||||
os.remove(tempThemeDir)
|
||||
if os.path.isdir(tempThemeDir):
|
||||
os.remove(tempThemeDir)
|
||||
return os.path.isfile(themeDir + '/theme.json')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue