Message359605
Well, yes, I realize that I could add the directories. But random users of find_executible may not realize that.
Actually, it's probably a bit more complex than just adding the top-level directories %ProgramFiles% and %ProgramFiles(x86)%, because find_executable probably doesn't do a recursive search. In that the best tactic would be to look in those top-level directories for a directory with the same name as the executable. If one is found, then look in it for the actual file.
For example, on my computer, inkscape.exe is at %ProgramFiles%\Inkscape
inkscape.exe, and that pattern is very common.
This tactic would find many of the otherwise unfound executables, and still execute quickly. |
|
Date |
User |
Action |
Args |
2020-01-08 16:27:46 | tbpassin | set | recipients:
+ tbpassin, vstinner, eric.araujo, dstufft |
2020-01-08 16:27:46 | tbpassin | set | messageid: <1578500866.04.0.330474255287.issue39260@roundup.psfhosted.org> |
2020-01-08 16:27:46 | tbpassin | link | issue39260 messages |
2020-01-08 16:27:45 | tbpassin | create | |
|