From 2a9c3ec0837fbb17b8cd2a10205c55014ee92210 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 11 Oct 2020 12:00:33 -0700 Subject: [PATCH] update-python-libraries: make script updateScript friendly --- .../python/update-python-libraries/update-python-libraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)