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

pull/34/head
dgtlmoon 2021-04-09 04:50:55 +02:00
rodzic 661542b056
commit a58679f983
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -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")