Pillow/winbuild/untar.py

11 lines
186 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):
with tarfile.open(src, 'r:gz') as tgz:
tgz.extractall(dest)
2015-06-20 06:43:14 +03:00
if __name__ == '__main__':
untar(sys.argv[1], sys.argv[2])