mirror of https://gitlab.com/bashrc2/epicyon
Remove directory
parent
61d0cb1f48
commit
ad72231aef
3
theme.py
3
theme.py
|
@ -14,6 +14,7 @@ from utils import copytree
|
|||
from shutil import copyfile
|
||||
from shutil import make_archive
|
||||
from shutil import unpack_archive
|
||||
from shutil import rmtree
|
||||
from content import dangerousCSS
|
||||
|
||||
|
||||
|
@ -64,7 +65,7 @@ def importTheme(baseDir: str, filename: str) -> bool:
|
|||
os.mkdir(themeDir)
|
||||
copytree(tempThemeDir, themeDir)
|
||||
if os.path.isdir(tempThemeDir):
|
||||
os.remove(tempThemeDir)
|
||||
rmtree(tempThemeDir)
|
||||
return os.path.isfile(themeDir + '/theme.json')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue