miguelgfierro / pybase

Codebase for Python
https://miguelgfierro.com
Other
26 stars 12 forks source link

uncompress tar #34

Open miguelgfierro opened 4 years ago

miguelgfierro commented 4 years ago
def extract_tar_gz(filename, path):
    with tarfile.open(filename, "r:gz"):
        tar.extractall(path=path)
    return os.path.join(path, filename.split(".tar.gz")[0])