Pillow/winbuild/untar.py

9 lines
176 B
Python
Raw Normal View History

2014-03-19 07:59:42 +04:00
import sys, tarfile
2014-03-25 09:38:45 +04:00
def untar(src, dest):
with tarfile.open(src, 'r:gz') as tgz:
tgz.extractall(dest)
if __name__=='__main__':
untar(sys.argv[1],sys.argv[2])