Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29578
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'skip:/ 10': 0.07; 'portable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'splitting': 0.09; '22:06,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:which': 0.16; 'wrote:': 0.17; 'variable': 0.20; 'equivalent': 0.20; 'not,': 0.21; "i'd": 0.22; 'linux': 0.24; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'environment': 0.29; 'subject:like': 0.29; 'function': 0.30; 'implement': 0.32; 'anybody': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'function.': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'there': 0.35; 'received:org': 0.36; 'should': 0.36; 'subject: (': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'obvious': 0.71; 'gelonida': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: portable way of locating an executable (like which) |
| Date | Thu, 20 Sep 2012 22:47:11 +0100 |
| References | <k3g0h6$mtr$1@ger.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-92-24-218-20.ppp.as43234.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
| In-Reply-To | <k3g0h6$mtr$1@ger.gmane.org> |
| X-Antivirus | avast! (VPS 120920-0, 20/09/2012), Outbound message |
| X-Antivirus-Status | Clean |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.975.1348177656.27098.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348177656 news.xs4all.nl 6867 [2001:888:2000:d::a6]:35160 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29578 |
Show key headers only | View raw
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