portable way of locating an executable (like which)

Gelonida N gelonida at gmail.com
Thu Sep 20 17:06:46 EDT 2012


I'd like to implement the equivalent functionality of the unix command
/usr/bin/which

The function should work under Linux and under windows.

Did anybody already implement such a function.
If not, is there a portable way of splitting the environment variable PATH?

Thanks for any sugestions





More information about the Python-list mailing list