CoastalCommitsPastes/server/node_modules/sqlite3/deps/extract.py
2022-03-06 16:46:59 -08:00

9 lines
191 B
Python

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)