Added config options to file

This commit is contained in:
Veronica K. B. Olsen
2019-06-23 19:28:49 +02:00
parent 570b4a2fc4
commit 44b83532cf
3 changed files with 35 additions and 27 deletions
+4 -5
View File
@@ -42,6 +42,7 @@ class NWBackup():
return False
logger.info("Backing up project")
self.theParent.statusBar.setStatus("Backing up project ...")
archName = ""
for c in self.theProject.projName:
@@ -52,15 +53,13 @@ class NWBackup():
baseName = path.join(self.mainConf.backupPath, archName)
try:
make_archive(
baseName, "zip",
root_dir = self.theProject.projPath,
base_dir = "."
)
make_archive(baseName, "zip", self.theProject.projPath, ".")
except Exception as e:
self.theParent.makeAlert(["Could not write backup archive.",str(e)],nwAlert.ERROR)
return False
self.theParent.statusBar.setStatus("Project backup complete")
return True
# END Class NWBackup