From a58679f983c02ff6dbe412189db47dea7ccbf35f Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 9 Apr 2021 04:50:55 +0200 Subject: [PATCH] Chdir is not needed because we add the file from the full path, but make it 'relative' in the Zip --- backend/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/__init__.py b/backend/__init__.py index c1125b679..ce2c20eb3 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -454,8 +454,6 @@ def changedetection_app(config=None, datastore_o=None): # Be sure we're written fresh datastore.sync_to_json() - os.chdir(app.config['datastore_path']) - # Add the index zipObj.write(os.path.join(app.config['datastore_path'], "url-watches.json"), arcname="url-watches.json")