This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael2
Recipients michael2
Date 2021-05-31.02:15:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622427353.15.0.786946612007.issue44270@roundup.psfhosted.org>
In-reply-to
Content
The early short-circuit logic in shutil.which() when cmd includes a directory component incorrectly gives None on Windows if the correct filename suffix was not also given.

Example: on Windows if ./foo.exe exists, then shutil.which('./foo.exe') returns None.
History
Date User Action Args
2021-05-31 02:15:53michael2setrecipients: + michael2
2021-05-31 02:15:53michael2setmessageid: <1622427353.15.0.786946612007.issue44270@roundup.psfhosted.org>
2021-05-31 02:15:53michael2linkissue44270 messages
2021-05-31 02:15:52michael2create