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


Groups > comp.lang.python > #29577

portable way of locating an executable (like which)

From Gelonida N <gelonida@gmail.com>
Subject portable way of locating an executable (like which)
Date 2012-09-20 23:06 +0200
Newsgroups comp.lang.python
Message-ID <mailman.973.1348175220.27098.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

portable way of locating an executable (like which) Gelonida N <gelonida@gmail.com> - 2012-09-20 23:06 +0200
  Re: portable way of locating an executable (like which) Nobody <nobody@nowhere.com> - 2012-09-21 00:59 +0100
    Re: portable way of locating an executable (like which) Tarek Ziadé <tarek@ziade.org> - 2012-09-21 10:12 +0200
  Re: portable way of locating an executable (like which) Ramchandra Apte <maniandram01@gmail.com> - 2012-09-22 20:55 -0700
  Re: portable way of locating an executable (like which) Ramchandra Apte <maniandram01@gmail.com> - 2012-09-22 20:55 -0700

csiph-web