Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'interpreter': 0.05; 'url:bitbucket': 0.05; 'subject:Python': 0.06; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'language.': 0.14; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:windows': 0.16; 'url:peps': 0.16; 'url:windows': 0.16; 'language': 0.16; 'wrote:': 0.18; 'version.': 0.19; 'header:User-Agent:1': 0.23; 'finally,': 0.24; 'url:dev': 0.24; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'installed': 0.27; 'url:python': 0.33; 'older': 0.33; 'version': 0.36; 'url:org': 0.36; 'to:addr:python- list': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'dave': 0.60; 'url:3': 0.61; "you're": 0.61; 'first': 0.61; 'our': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; 'line,': 0.68; 'reads': 0.68; 'angel': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python path on windows Date: Sat, 21 Feb 2015 12:36:14 +0000 References: <54E74A09.1060906@davea.name> <54E8668A.7010204@yahoo.no> 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: <54E8668A.7010204@yahoo.no> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424522199 news.xs4all.nl 2945 [2001:888:2000:d::a6]:49082 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86027 On 21/02/2015 11:05, Gisle Vanem wrote: > Dave Angel wrote: > >> Finally, when py.exe starts, it reads that first (shebang) line, and >> decides which python interpreter to actually use. > > py.exe? Do you mean python.exe? > py.exe or pyw.exe come with the Python launcher on Windows and work out which version of the interpreter to use. https://www.python.org/dev/peps/pep-0397/ https://docs.python.org/3/using/windows.html#python-launcher-for-windows I think it was first installed with Python 3.3. It's available here https://bitbucket.org/vinay.sajip/pylauncher if you're on an older version. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence