SIGN IN SIGN UP

[3.12] gh-127001: Fix PATHEXT issues in shutil.which() on Windows (GH-127035) (GH-127158)

* Name without a PATHEXT extension is only searched if the mode does not
  include X_OK.
* Support multi-component PATHEXT extensions (e.g. ".foo.bar").
* Support files without extensions in PATHEXT contains dot-only extension
  (".", "..", etc).
* Support PATHEXT extensions that end with a dot (e.g. ".foo.").
(cherry picked from commit 8899e85de100557899da05f0b37867a371a73800)
S
Serhiy Storchaka committed
29648980d440e70ade4e0975b8d6aa83214866ed
Parent: 32bc8e8
Committed by GitHub <noreply@github.com> on 11/22/2024, 4:33:50 PM