Pillow/winbuild/untar.py
2018-03-04 21:36:33 +11:00

12 lines
187 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])