summaryrefslogtreecommitdiff
path: root/lib/extensions/zip.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-06-13 12:53:05 -0400
committerLex Neva <github.com@lexneva.name>2018-06-15 21:44:52 -0400
commitf9a5e4c03a073d403222f0d5b7810cdaab90145a (patch)
tree2b314484261d3bae07637fde7f5e2a8ffc38ca9f /lib/extensions/zip.py
parentea1135c1451ab2db54fd52fbf48a8eee9c5a43e0 (diff)
remove tmp directory from zip file paths
Diffstat (limited to 'lib/extensions/zip.py')
-rw-r--r--lib/extensions/zip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/zip.py b/lib/extensions/zip.py
index 4720ad1e..a7616536 100644
--- a/lib/extensions/zip.py
+++ b/lib/extensions/zip.py
@@ -64,7 +64,7 @@ class Zip(InkstitchExtension):
with ZipFile(temp_file.name, "w") as zip_file:
for file in files:
- zip_file.write(file)
+ zip_file.write(file, os.path.basename(file))
# inkscape will read the file contents from stdout and copy
# to the destination file that the user chose