Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29578
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: portable way of locating an executable (like which) |
| Date | 2012-09-20 22:47 +0100 |
| References | <k3g0h6$mtr$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.975.1348177656.27098.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: portable way of locating an executable (like which) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-20 22:47 +0100
csiph-web