aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-10 12:03:43 +0300
committerBonfaceKilz2021-03-10 12:03:43 +0300
commit374d7bf253d29a910e8bbbbd6c9ea01394fb8e3f (patch)
tree7f782b49e54e3abaa2fe071fb8f6d8693a14d36f
parent5caff3fbc6e81348f0bc03cda6a43183718a6f3c (diff)
downloadgenenetwork3-374d7bf253d29a910e8bbbbd6c9ea01394fb8e3f.tar.gz
Extract file to the correct location
-rw-r--r--gn3/file_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/file_utils.py b/gn3/file_utils.py
index 6b28784..06a1b4c 100644
--- a/gn3/file_utils.py
+++ b/gn3/file_utils.py
@@ -67,7 +67,7 @@ contents to TARGET_DIR/<dir-hash>.
gzipped_file.save(tar_target_loc)
# Extract to "tar_target_loc/token"
tar = tarfile.open(tar_target_loc)
- tar.extractall(path=tar_target_loc)
+ tar.extractall(path=os.path.join(target_dir, token))
tar.close()
# pylint: disable=W0703
except Exception: