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 eryksun
Recipients dstufft, eric.araujo, eryksun, tbpassin, vstinner
Date 2020-01-08.17:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> In that the best tactic would be to look in those top-level 
> directories for a directory with the same name as the executable.

It may be a common pattern, but such a guess is not reliable. The needed executable may be in an unrelated directory at an arbitrary depth in the tree. 

There are reliable ways to find an executable in Windows other than searching PATH -- assuming the application wants to be found in a reliable way. For example, we can use winreg to search the subkey names of "[HKCU|HKLM]\Software\Microsoft\Windows\CurrentVersion\App Paths" for the given executable name (e.g. "notepad++.exe"). The default value of each subkey is the fully-qualified path of the executable.
Date User Action Args
2020-01-08 17:25:22eryksunsetrecipients: + eryksun, vstinner, eric.araujo, dstufft, tbpassin
2020-01-08 17:25:22eryksunsetmessageid: <>
2020-01-08 17:25:22eryksunlinkissue39260 messages
2020-01-08 17:25:21eryksuncreate