Fix ZIP extraction on Windows. (#438)

Meant to resolve #412 (comment)
This commit is contained in:
Diego Casorran
2020-02-12 22:01:50 +00:00
committed by GitHub
parent 573278be09
commit 50df5a2983

View File

@@ -555,7 +555,7 @@ def unzip(source_filename, dest_dir, unpack_even_if_exists=False):
unzip_to_dir = dest_dir
if common_subdir:
unzip_to_dir = os.path.join('/'.join(dest_dir.split('/')[:-1]), 'unzip_temp')
unzip_to_dir = os.path.join(os.path.dirname(dest_dir), 'unzip_temp')
# Now do the actual decompress.
for member in zf.infolist():