depot/third_party/nixpkgs/pkgs/tools/misc/nanoemoji/test-pythonpath.patch
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

14 lines
731 B
Diff

--- 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: