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 tbpassin
Recipients dstufft, eric.araujo, tbpassin
Date 2020-01-08.15:53:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578498792.76.0.781232335261.issue39260@roundup.psfhosted.org>
In-reply-to
Content
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 10 Computer running Windows 10 Pro.  In the past, I'm fairly sure these directories were always included on the PATH.

Some programs add their install directory to the Windows PATH, but many don't.  For example, on my new computer, Pandoc added itself to the PATH but EditPlus and Notepad++ did not.  So

    >>> find_executable('pandoc')
    'C:\\Program Files\\Pandoc\\pandoc.exe'
but
    >>> find_executable('editplus')   # no result
    >>> find_executable('notepad++')  # no result

I suggest that in Windows, find_executable() should check for and add the %ProgramFiles% and %ProgramFiles(x86)% directories to the system PATH before executing its search.
History
Date User Action Args
2020-01-08 15:53:12tbpassinsetrecipients: + tbpassin, eric.araujo, dstufft
2020-01-08 15:53:12tbpassinsetmessageid: <1578498792.76.0.781232335261.issue39260@roundup.psfhosted.org>
2020-01-08 15:53:12tbpassinlinkissue39260 messages
2020-01-08 15:53:12tbpassincreate