Pillow/winbuild/untar.py

12 lines
187 B
Python
Raw Normal View History

2015-06-20 06:43:14 +03:00
import sys
import tarfile
2014-03-19 07:59:42 +04:00
2014-03-25 09:38:45 +04:00
def untar(src, dest):
2019-06-13 18:54:57 +03:00
with tarfile.open(src, "r:gz") as tgz:
2014-03-25 09:38:45 +04:00
tgz.extractall(dest)
2018-03-03 12:54:00 +03:00
2019-06-13 18:54:57 +03:00
if __name__ == "__main__":
2015-06-20 06:43:14 +03:00
untar(sys.argv[1], sys.argv[2])