mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 06:20:34 +02:00
Unpack files with any kind of supported compression, not just gzip
This commit is contained in:
parent
7abb8347ca
commit
b8a6ee3256
1 changed files with 1 additions and 1 deletions
|
@ -118,6 +118,6 @@ def downloadAndExtract(url, destPath, hash=None, hasher=hashlib.sha512(), isZip=
|
||||||
zip.extractall(destPath)
|
zip.extractall(destPath)
|
||||||
else:
|
else:
|
||||||
# Extract the archive
|
# Extract the archive
|
||||||
with tarfile.open(tempFileName, 'r:gz') as tgz:
|
with tarfile.open(tempFileName, 'r:*') as tgz:
|
||||||
tgz.extractall(destPath)
|
tgz.extractall(destPath)
|
||||||
os.remove(tempFileName)
|
os.remove(tempFileName)
|
||||||
|
|
Loading…
Reference in a new issue