Fix shutil call in update_3rdparty.py

shutil.unpack_archive takes a filename.
This commit is contained in:
Florian Bruhin 2018-09-22 09:58:09 +02:00
parent d97e1741e0
commit b63af145d9

View File

@ -86,8 +86,7 @@ def update_pdfjs(target_version=None):
shutil.rmtree(target_path)
os.makedirs(target_path)
print("Extracting new version")
with open(archive_path, 'rb') as archive:
shutil.unpack_archive(archive, target_path, 'zip')
shutil.unpack_archive(archive_path, target_path, 'zip')
urllib.request.urlcleanup()