]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on executable...
authorCharles Machalow <csm10495@gmail.com>
Mon, 2 Oct 2023 08:27:30 +0000 (01:27 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 08:27:30 +0000 (09:27 +0100)
commit29b875bb93099171aeb7a60cd18d4e1f4ea3c1db
tree4125892f44bd5a1a0a6dd733909ffcfcb9ec284a
parent29c3a445d99f7e29086f6fdc4612e200cbbdc0ff
gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on executable files (GH-109995)

The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored.
Doc/library/shutil.rst
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2023-09-24-06-04-14.gh-issue-109590.9EMofC.rst [new file with mode: 0644]