From 2076c66eb5b3d926b5af340afceed0e8955bc40b Mon Sep 17 00:00:00 2001 From: prash3r Date: Sat, 3 Sep 2022 13:43:17 +0200 Subject: [PATCH] uploaded restored_config.zip is now placed in provided config folder and not the working directory where it will be ignored on restart --- cbpi/controller/system_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbpi/controller/system_controller.py b/cbpi/controller/system_controller.py index 8c211fc..24128fe 100644 --- a/cbpi/controller/system_controller.py +++ b/cbpi/controller/system_controller.py @@ -116,8 +116,8 @@ class SystemController: try: content = backup_file.read() if backup_file and self.allowed_file(filename, 'zip'): - self.path = os.path.join(".", "restored_config.zip") - + self.path = os.path.join(self.cbpi.config_folder._rawPath, "restored_config.zip") + f=open(self.path, "wb") f.write(content) f.close()