Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: portable way of locating an executable (like which)

Reply
Thread Tools

Re: portable way of locating an executable (like which)

 
 
Mark Lawrence
Guest
Posts: n/a
 
      09-20-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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
portable way of locating an executable (like which) Gelonida N Python 4 09-23-2012 03:55 AM
Re: portable way of locating an executable (like which) Gelonida N Python 0 09-20-2012 11:07 PM
Re: portable way of locating an executable (like which) Chris Angelico Python 0 09-20-2012 11:04 PM
Re: portable way of locating an executable (like which) Ian Kelly Python 0 09-20-2012 10:32 PM
Re: portable way of locating an executable (like which) Chris Angelico Python 0 09-20-2012 10:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57