mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)
This commit is contained in:
parent
693c104ae7
commit
197f0447e3
3 changed files with 3 additions and 4 deletions
|
@ -1317,7 +1317,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
|
|||
# os.confstr() or CS_PATH is not available
|
||||
path = os.defpath
|
||||
# bpo-35755: Don't use os.defpath if the PATH environment variable is
|
||||
# set to an empty string to mimick Unix which command behavior
|
||||
# set to an empty string
|
||||
|
||||
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
|
||||
if not path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue