[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

Anthony Sottile report at bugs.python.org
Wed Jan 22 11:30:36 EST 2020


Anthony Sottile <asottile at umich.edu> added the comment:

sure, it's the standard PATHEXT (basically a fresh vm from modern.ie) -- the only reason I noticed this is I was reading the source: https://github.com/python/cpython/blob/5bbac8cbdf140ebce446ea4e7db2b20a5d7b8402/Lib/shutil.py#L1367-L1373



C:\Users\IEUser>echo %PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31405>
_______________________________________


More information about the Python-bugs-list mailing list