Check that directory exists

main
Bob Mottram 2021-05-30 12:34:30 +01:00
parent f06d1b20b3
commit 61d0cb1f48
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ def importTheme(baseDir: str, filename: str) -> bool:
if not os.path.isdir(themeDir):
os.mkdir(themeDir)
copytree(tempThemeDir, themeDir)
if os.path.isdir(tempThemeDir):
os.remove(tempThemeDir)
return os.path.isfile(themeDir + '/theme.json')