From 451fbd7f4298a221835e6925e8a21f4307205e38 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 May 2021 22:52:32 +0100 Subject: [PATCH] Saving theme --- daemon.py | 1 + theme.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 4e8841505..eb80d09ac 100644 --- a/daemon.py +++ b/daemon.py @@ -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 diff --git a/theme.py b/theme.py index 00e1b33a4..ea67c2081 100644 --- a/theme.py +++ b/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)