Check that file exists

merge-requests/30/head
Bob Mottram 2021-05-28 23:00:46 +01:00
parent 451fbd7f42
commit 8ff292dc8d
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def exportTheme(baseDir: str, theme: str) -> bool:
"""Exports a theme as a zip file
"""
themeDir = baseDir + '/theme/' + theme
if not os.path.isdir(themeDir):
if not os.path.isfile(themeDir + '/theme.json'):
return False
if not os.path.isdir(baseDir + '/exports'):
os.mkdir(baseDir + '/exports')