File: extract.py

package info (click to toggle)
node-sqlite3 5.0.0%2Bds1-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,896 kB
  • sloc: cpp: 11,186; sql: 10,062; javascript: 2,703; sh: 243; makefile: 72; python: 8
file content (9 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
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)