Find path of executable specified by filename
- whichfile(filename, exts=None)
Find path of executable specified by filename. It Takes into consideration the PATHEXT variable (found in MS Windows systems) to try also executable names extended with executable extensions.
# on a debian machine with taurus installed in the default path: whichfile('taurus') --> '/usr/bin/taurus' # or, on a winXP machine: whichfile('command') --> 'C:\WINDOWS\system32\command.COM'