Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'subject:Windows': 0.02; 'win32': 0.03; 'installed.': 0.07; 'versions,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'assume': 0.14; '(am': 0.16; '.py': 0.16; 'edward': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'trying': 0.19; 'version.': 0.19; 'starts': 0.20; 'command': 0.22; 'header:User- Agent:1': 0.23; 'specify': 0.24; 'looks': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'correct': 0.29; 'skip:( 20': 0.30; 'file': 0.32; 'something': 0.35; 'version': 0.36; 'really': 0.36; 'doing': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'launch': 0.39; 'received:71': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'according': 0.40; 'first': 0.61; 'different': 0.65; 'here': 0.66; 'default': 0.69; '2014,': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Controlling py.exe launcher on Windows Date: Tue, 05 Aug 2014 19:02:56 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407279808 news.xs4all.nl 2853 [2001:888:2000:d::a6]:52656 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75768 On 8/5/2014 1:27 PM, Edward Diener wrote: > I am trying to control the default version of the py.exe launcher on > Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 > bit and 64 bit versions, all in different directories. I assume that .py > and .pyw files are associated with the py.exe launcher. > > I am trying to control which version starts through a py.ini file in the > same directory as the py.exe file in the 3.4.1 version last installed. > > If I specify in the [defaults] section of py.ini: > > python=3.4 > > then launching py.exe will show: > > Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 > bit (AM > D64)] on win32 > > If I specify: > > python=3.4-32 This looks correct according to the manual. > > then launching py.exe will show: > > Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit > (AMD64)] on win > 32 > > Is it really true that I cannot specify the 32 bit version in the .ini > file or am I doing something wrong here ? First try > py -3.4-32 on the command line to make sure that py can find and launch that version. -- Terry Jan Reedy