summary refs log tree commit diff
path: root/pkgs/tools/misc/nanoemoji/test-pythonpath.patch
blob: 12733224560c9b147fcb629f43def10a1d38fc2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/tests/test_helper.py
+++ b/tests/test_helper.py
@@ -269,9 +269,9 @@
     print("subprocess:", " ".join(cmd))  # very useful on failure
     env = {
         # We may need to find nanoemoji and other pip-installed cli tools
-        "PATH": str(Path(shutil.which("nanoemoji")).parent),
+        "PATH": str(Path(shutil.which("nanoemoji")).parent) + ":" + os.environ["PATH"],
         # We may need to find test modules
-        "PYTHONPATH": os.pathsep.join((str(Path(__file__).parent),)),
+        "PYTHONPATH": os.pathsep.join((str(Path(__file__).parent),)) + ":" + os.environ["PYTHONPATH"],
     }
     # Needed for windows CI to function; ref https://github.com/appveyor/ci/issues/1995
     if "SYSTEMROOT" in os.environ: