Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/temporal/t.avalanche.stats/t.avalanche.stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

import atexit
import sys
import os
from pathlib import Path
from subprocess import PIPE
from zipfile import ZipFile
Expand Down Expand Up @@ -101,7 +102,7 @@ def zip_shape(shape_file):
# Write to zip-file
with ZipFile(str(directory / f"{base_name}.zip"), "w") as zf:
for shape_file_part in shape_file_parts:
zf.write(shape_file_part)
zf.write(shape_file_part, os.path.basename(shape_file_part))
shape_file_part.unlink()


Expand Down
Loading