plex-web-downloader/node_modules/sqlite3/deps/extract.py

10 lines
191 B
Python
Raw Normal View History

2015-10-13 15:47:32 -04:00
import sys
import tarfile
import os
tarball = os.path.abspath(sys.argv[1])
dirname = os.path.abspath(sys.argv[2])
tfile = tarfile.open(tarball,'r:gz');
tfile.extractall(dirname)
sys.exit(0)