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


Groups > comp.lang.python > #29590

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

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.076
X-Spam-Evidence '*H*': 0.85; '*S*': 0.00; 'cpython': 0.05; 'default.': 0.07; 'subject:which': 0.16; 'variable.': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'machine': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'besides': 0.27; '(maybe': 0.29; 'subject:like': 0.29; 'received:209.85.210.174': 0.30; 'received:mail-iy0-f174.google.com': 0.30; 'directory,': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'described': 0.35; 'path': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'subject: (': 0.36; 'two': 0.37; 'ones': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'skip:6 10': 0.63; 'more': 0.63; 'search,': 0.65; 'believe': 0.69; 'angel': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=r1INpKqGk+0mUIoqmZAqQ6kKswYOggvQMiH1SeTTwdQ=; b=yyYwRt6eSGWF5tf0VZ9t7WEAVHO8jnWcJ6Rx0R5idN27N31vYTMvjSMCFb+LXFSXG5 iUuQKAQoCm8osu2tcSz8tz6zyBhpCOfrFpr95P0S4506OBoZ8seI0RHfUz1Gm60YTnLw bCtG8zxH813UtYPvnVuHdM7TUQ/sFZD3evM7Kba1go/rq0tfzIU2x/z+Cgnf357cMQlx 5O9H0+0DgTgU4QjVaSxdeSYCSmkwbcWl5kZNlZChhcv1vOBCVb1idOw5kMbEYhp/jJtt iHspEKVpR0ADUXqFdJjTWtZFJQGdvvRumbLZJZ6nmMx+WSrTTK0jByD9WXv24RNA2fRB dCJA==
Date Thu, 20 Sep 2012 21:57:14 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0
MIME-Version 1.0
To "comp.lang.python" <python-list@python.org>
Subject Re: portable way of locating an executable (like which)
References <k3g0h6$mtr$1@ger.gmane.org> <CAEk9e3rfcvbrjVpTUmX9RdtmpExe_owxfrEwJqDREzfUmNGR0w@mail.gmail.com> <505BD175.408@davea.name>
In-Reply-To <505BD175.408@davea.name>
X-Enigmail-Version 1.4.4
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
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.986.1348196243.27098.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348196243 news.xs4all.nl 6859 [2001:888:2000:d::a6]:40960
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29590

Show key headers only | View raw


On 2012.09.20 21:31, Dave Angel wrote:
> I don't have a Windows machine set up right now, but I believe there are
> two more directories to search, besides the ones described in the PATH
> variable.
> 
> One is the current directory, and the other is the Windows directory
> (maybe also the xxx/system32 or something).
Those system directories are in the path by default.

-- 
CPython 3.3.0rc2 | Windows NT 6.1.7601.17835

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


Thread

Re: portable way of locating an executable (like which) Andrew Berg <bahamutzero8825@gmail.com> - 2012-09-20 21:57 -0500

csiph-web