mirror of https://gitlab.com/bashrc2/epicyon
Remove any previous temporary files
parent
ad72231aef
commit
8804849a8d
3
theme.py
3
theme.py
|
@ -24,7 +24,8 @@ def importTheme(baseDir: str, filename: str) -> bool:
|
|||
if not os.path.isfile(filename):
|
||||
return False
|
||||
tempThemeDir = baseDir + '/imports/files'
|
||||
if not os.path.isdir(tempThemeDir):
|
||||
if os.path.isdir(tempThemeDir):
|
||||
rmtree(tempThemeDir)
|
||||
os.mkdir(tempThemeDir)
|
||||
unpack_archive(filename, tempThemeDir, 'zip')
|
||||
essentialThemeFiles = ('name.txt', 'theme.json')
|
||||
|
|
Loading…
Reference in New Issue