portable way of locating an executable (like which)
Mark Lawrence
breamoreboy at yahoo.co.uk
Thu Sep 20 17:47:11 EDT 2012
On 20/09/2012 22:06, Gelonida N wrote:
> 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.
Searching found nothing obvious to me :(
> If not, is there a portable way of splitting the environment variable PATH?
With os.sep ?
>
> Thanks for any sugestions
>
>
--
Cheers.
Mark Lawrence.
More information about the Python-list
mailing list