STINNER Victor added the comment:
find_executable() rely on the PATH environment variable:
def find_executable(executable, path=None):
"""Tries to find 'executable' in the directories listed in 'path'.
A string listing directories separated by 'os.pathsep'; defaults to
os.environ[
New submission from Thomas Passin :
On Windows, find_executable() in distutils.spawn may fail to find executables
that it ought to. This is because the PATH environmental variable no longer
includes %ProgramFiles% and %ProgramFiles(x86)%. At least, that is the case on
my brand new Windows 1