Chdir is not needed because we add the file from the full path, but make it 'relative' in the Zip

pull/34/head
dgtlmoon 4 years ago
parent 661542b056
commit a58679f983

@ -454,8 +454,6 @@ def changedetection_app(config=None, datastore_o=None):
# Be sure we're written fresh # Be sure we're written fresh
datastore.sync_to_json() datastore.sync_to_json()
os.chdir(app.config['datastore_path'])
# Add the index # Add the index
zipObj.write(os.path.join(app.config['datastore_path'], "url-watches.json"), arcname="url-watches.json") zipObj.write(os.path.join(app.config['datastore_path'], "url-watches.json"), arcname="url-watches.json")

Loading…
Cancel
Save