build/python: do not use absolute path for tar
This commit is contained in:
parent
ca46992d3e
commit
e6d607fef3
@ -10,7 +10,7 @@ def untar(tarball_path, parent_path, base, lazy=False):
|
|||||||
pass
|
pass
|
||||||
os.makedirs(parent_path, exist_ok=True)
|
os.makedirs(parent_path, exist_ok=True)
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(['/bin/tar', 'xfC', tarball_path, parent_path])
|
subprocess.check_call(['tar', 'xfC', tarball_path, parent_path])
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
import tarfile
|
import tarfile
|
||||||
tar = tarfile.open(tarball_path)
|
tar = tarfile.open(tarball_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user