Commit dcaad1b
committed
Fix PYTHONPATH man page in empty-value case
Follow-up to issue 16309: <https://bugs.python.org/issue16309>
(Note that the first message in that issue is slightly mistaken, as
described in msg186700.)
Test Plan:
In a temporary directory, run:
mkdir x &&
echo 'import z' >x/x.py &&
echo 'print("z")' >z.py &&
printf '%s\n' '#!/bin/sh' 'z' >x/x &&
printf '%s\n' '#!/bin/sh' 'echo "in z"' >z &&
chmod +x x/x &&
chmod +x z &&
:
Then observe that `PYTHONPATH= python3.7 x/x.py` fails with a
`ModuleNotFoundError`, but `PATH= x/x` successfully prints “in z”. Thus,
the `PATH` and `PYTHONPATH` semantics are different.
wchargin-branch: pythonpath-man-posix-divergence1 parent 815061c commit dcaad1b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
0 commit comments