diff options
author | jaseg <git@jaseg.de> | 2022-06-20 14:38:48 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-06-20 14:38:48 +0200 |
commit | 3c4b7b1de3e8332d9085823c8b2798555fa521c5 (patch) | |
tree | b30147192964c1736dc2a68758e2b681ac1151a6 | |
parent | 7ded0d6d6f50924566def7cb7a9f46de6f24229b (diff) | |
download | gerbonara-0.10.8.tar.gz gerbonara-0.10.8.tar.bz2 gerbonara-0.10.8.zip |
fix zip exportv0.10.8
-rw-r--r-- | gerbonara/layers.py | 4 |
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):
|