Pillow/winbuild/untar.py
2015-06-20 14:46:04 +10:00

11 lines
186 B
Python

import sys
import tarfile
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])