Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29578 > unrolled thread

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

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2012-09-20 22:47 +0100
Last post2012-09-20 22:47 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: portable way of locating an executable (like which) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-20 22:47 +0100

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

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-09-20 22:47 +0100
SubjectRe: portable way of locating an executable (like which)
Message-ID<mailman.975.1348177656.27098.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web