-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Fix PYTHONPATH man page in empty-value case #14946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix PYTHONPATH man page in empty-value case #14946
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
Account created; CLA signed. Will check back after one business day. |
I signed it! |
Could you please fix the merge conflict? |
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-divergence
15de8f2
to
dcaad1b
Compare
I don't think I've merged past more than ten thousand commits before. Happy to. :-) I pushed a clean merge, but then also force-pushed a commit directly on |
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:
Then observe that
PYTHONPATH= python3.7 x/x.py
fails with aModuleNotFoundError
, butPATH= x/x
successfully prints “in z”. Thus,the
PATH
andPYTHONPATH
semantics are different.wchargin-branch: pythonpath-man-posix-divergence