Fixed zip builder data path

This commit is contained in:
Joel Collins 2020-06-28 09:22:10 +01:00
parent b71df382b0
commit b948174936

View file

@ -109,7 +109,7 @@ class ZipManager:
# Add to ZIP file if it exists # Add to ZIP file if it exists
file_path = capture_obj.file file_path = capture_obj.file
rel_path = os.path.relpath( rel_path = os.path.relpath(
file_path, microscope.camera.paths["default"] file_path, microscope.captures.paths["default"]
) )
zipObj.write(file_path, arcname=rel_path) zipObj.write(file_path, arcname=rel_path)
# Update task progress # Update task progress