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


Groups > comp.lang.python > #85985

Re: Python path on windows

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'scripts': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'url:bitbucket': 0.05; 'subject:Python': 0.06; 'executable': 0.09; 'formatting': 0.09; 'friday,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'variable,': 0.09; 'python': 0.11; 'language.': 0.14; 'paragraphs,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'spacing': 0.16; 'subject:windows': 0.16; 'url:windows': 0.16; 'utc,': 0.16; 'windows?': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'feb': 0.22; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'url:moin': 0.24; 'looks': 0.24; 'equivalent': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'url:mailman': 0.30; 'url:wiki': 0.31; 'post.': 0.31; 'linux': 0.33; 'url:python': 0.33; 'skip:# 10': 0.33; 'google': 0.35; 'version': 0.36; '2.6': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'rather': 0.38; 'aside': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'ensure': 0.60; 'read': 0.60; 'ian': 0.60; 'url:3': 0.61; "you're": 0.61; 'our': 0.64; 'charset:windows-1252': 0.65; '20,': 0.68; '2015': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Python path on windows
Date Fri, 20 Feb 2015 18:31:20 +0000
References <f8c8a373-16e9-41c1-9e5b-37003f7a6c70@googlegroups.com> <mailman.18924.1424444054.18130.python-list@python.org> <ef789d3d-ec7d-4b6f-a6a9-751a7a945851@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-92-24-222-48.ppp.as43234.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
In-Reply-To <ef789d3d-ec7d-4b6f-a6a9-751a7a945851@googlegroups.com>
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18929.1424457100.18130.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424457100 news.xs4all.nl 2906 [2001:888:2000:d::a6]:34353
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85985

Show key headers only | View raw


On 20/02/2015 15:16, loial wrote:
> On Friday, February 20, 2015 at 2:54:26 PM UTC, Ian wrote:
>> On Feb 20, 2015 7:46 AM, "loial" <jldun...@gmail.com> wrote:
>>
>>>
>>
>>> On Linux we use
>>
>>> #!/usr/bin/env python
>>
>>>
>>
>>> At the start of scripts to ensure that the python executable used is the one defined in the PATH variable, rather than hardcoding a path to the python executable.
>>
>>>
>>
>>> What is the equivalent functionality in Windows?
>>
>> https://docs.python.org/3/using/windows.html#launcher
>>
>> Note that while the launcher can be used with any version of Python, it is only packaged with 3.3+.
>
> Vesrion is 2.6
>

See https://bitbucket.org/vinay.sajip/pylauncher

As an aside it looks from the formatting above as if you're using google 
groups to post.  If that is the case would you please access this list 
via https://mail.python.org/mailman/listinfo/python-list or read and 
action this https://wiki.python.org/moin/GoogleGroupsPython to prevent 
us seeing double line spacing and single line paragraphs, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Thread

Python  path on windows loial <jldunn2000@gmail.com> - 2015-02-20 06:43 -0800
  Re: Python  path on windows Dave Angel <davea@davea.name> - 2015-02-20 09:51 -0500
  Re: Python path on windows Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-20 07:54 -0700
    Re: Python path on windows loial <jldunn2000@gmail.com> - 2015-02-20 07:16 -0800
      Re: Python path on windows Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-20 11:25 -0700
      Re: Python path on windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-20 18:31 +0000
      Re: Python path on windows Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2015-02-20 21:32 +0100
  Re: Python  path on windows wxjmfauth@gmail.com - 2015-02-20 07:20 -0800
  Re: Python path on windows Gisle Vanem <gvanem@yahoo.no> - 2015-02-21 12:05 +0100
  Re: Python path on windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-21 12:36 +0000
  Re: Python path on windows Dave Angel <davea@davea.name> - 2015-02-21 09:10 -0500
  Re: Python path on windows Chris Angelico <rosuav@gmail.com> - 2015-02-22 01:40 +1100

csiph-web