Fix shutil call in update_3rdparty.py
shutil.unpack_archive takes a filename.
This commit is contained in:
parent
d97e1741e0
commit
b63af145d9
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user