[issue34530] distutils: find_executable() fails if the PATH environment variable is not set

STINNER Victor report at bugs.python.org
Mon Sep 3 17:28:47 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I missed the fact that find_executable() always lookup in the current directory, whereas shutil.which() doesn't. I abandoned my PR 8968 in favor of PR 9049 which only fix the case where PATH env var is not defined. This PR can easily be backported to all branches, whereas backporting PR 8968 to stable branches would be risky: changes to distutils are likely to break a random package on PyPI.

----------
versions: +Python 2.7, Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list