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

Serhiy Storchaka report at bugs.python.org
Thu Aug 30 08:32:37 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

find_executable() always searches executables from the current directory. This effectively equivalent having os.curdir at the start of path. shutil.which() does this only on Windows. This change LGTM, but it potentially can break user code, thus it may be not safe to make it in maintained versions.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list