Skip to content

Commit 2fb6d1c

Browse files
committed
compatible python3.6
1 parent f9dbccc commit 2fb6d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zipapps/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ def create_archive_layer(self):
188188
else:
189189
compression = ZIP_DEFLATED
190190
compresslevel = 0
191-
with ZipFile(self._output_path,
191+
with ZipFile(str(self._output_path),
192192
mode='w',
193193
compression=compression,
194194
compresslevel=compresslevel) as zf:
195195
for f in self._cache_path.glob('**/*'):
196-
zf.write(f, f.relative_to(self._cache_path))
196+
zf.write(f, str(f.relative_to(self._cache_path)))
197197

198198
def create_archive(self):
199199
if sys.version_info.minor >= 7:

0 commit comments

Comments
 (0)