aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-10-11 12:00:33 -0700
committerJonathan Ringer <jonringer117@gmail.com>2020-10-11 12:03:18 -0700
commit2a9c3ec0837fbb17b8cd2a10205c55014ee92210 (patch)
tree1f7af2d701087db0d4d6c1a848947acdd67ae8e7 /pkgs/development/interpreters/python
parent69519cfc27381cad569eb99bf64e10c35fe7a05d (diff)
update-python-libraries: make script updateScript friendly
Diffstat (limited to 'pkgs/development/interpreters/python')
-rwxr-xr-xpkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
index 8b6f082674cd..f822cea64da8 100755
--- a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
+++ b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
@@ -33,7 +33,7 @@ PRERELEASES = False
GIT = "git"
-NIXPGKS_ROOT = str(pathlib.Path(__file__).absolute().parents[5])
+NIXPGKS_ROOT = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode('utf-8').strip()
import logging
logging.basicConfig(level=logging.INFO)