mirror of https://gitlab.com/bashrc2/epicyon
Saving theme
parent
74116db628
commit
451fbd7f42
|
@ -4143,6 +4143,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.themeName):
|
||||
themeDownloadPath += \
|
||||
'/exports/' + self.server.themeName + '.zip'
|
||||
print('submitExportTheme path=' + themeDownloadPath)
|
||||
self._redirect_headers(themeDownloadPath,
|
||||
cookie, callingDomain)
|
||||
self.server.POSTbusy = False
|
||||
|
|
2
theme.py
2
theme.py
|
@ -27,7 +27,7 @@ def exportTheme(baseDir: str, theme: str) -> bool:
|
|||
if os.path.isfile(exportFilename):
|
||||
os.remove(exportFilename)
|
||||
try:
|
||||
make_archive(exportFilename, 'zip', themeDir)
|
||||
make_archive(baseDir + '/exports/' + theme, 'zip', themeDir)
|
||||
except BaseException:
|
||||
pass
|
||||
return os.path.isfile(exportFilename)
|
||||
|
|
Loading…
Reference in New Issue