summaryrefslogtreecommitdiff
path: root/gerbonara/layers.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-20 14:38:48 +0200
committerjaseg <git@jaseg.de>2022-06-20 14:38:48 +0200
commit3c4b7b1de3e8332d9085823c8b2798555fa521c5 (patch)
treeb30147192964c1736dc2a68758e2b681ac1151a6 /gerbonara/layers.py
parent7ded0d6d6f50924566def7cb7a9f46de6f24229b (diff)
downloadgerbonara-3c4b7b1de3e8332d9085823c8b2798555fa521c5.tar.gz
gerbonara-3c4b7b1de3e8332d9085823c8b2798555fa521c5.tar.bz2
gerbonara-3c4b7b1de3e8332d9085823c8b2798555fa521c5.zip
fix zip exportv0.10.8
Diffstat (limited to 'gerbonara/layers.py')
-rw-r--r--gerbonara/layers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py
index 552ac8b..41c5bfe 100644
--- a/gerbonara/layers.py
+++ b/gerbonara/layers.py
@@ -409,9 +409,9 @@ class LayerStack:
else:
raise ValueError('output zip file already exists and overwrite_existing is False')
- with ZipFile(path) as le_zip:
+ with ZipFile(path, 'w') as le_zip:
for path, layer in self._save_files_iter(naming_scheme=naming_scheme):
- with le_zip.open(prefix + str(path), 'wb') as out:
+ with le_zip.open(prefix + str(path), 'w') as out:
out.write(layer.write_to_bytes())
def save_to_directory(self, path, naming_scheme={}, overwrite_existing=True):