8000 keep PYTHONPATH when requested · eric321/circuitpython@71eea30 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71eea30

Browse files
committed
keep PYTHONPATH when requested
This turns out to be needed by the testsuite of jepler_udecimal, which needs to add the `jepler_udecimal` directory both to PYTHONPATH and MICROPYPATH.
1 parent 726639b commit 71eea30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run-tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,10 @@ def run_one_test(test_file):
829829
"PATH": os.environ["PATH"],
830830
"LANG": "en_US.UTF-8",
831831
}
832+
# CIRCUITPY-CHANGE: --keep-path applies to PYTHONPATH as well
833+
if args.keep_path and os.getenv("PYTHONPATH"):
834+
e["PYTHONPATH"] += ":" + os.getenv("PYTHONPATH")
835+
832836
# run CPython to work out expected output
833837
try:
834838
output_expected = subprocess.check_output(

0 commit comments

Comments
 (0)
0