Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'skip:[ 20': 0.04; 'python3': 0.07; 'sys': 0.07; 'versions,': 0.07; 'reinstall': 0.09; '2.7': 0.14; '.py': 0.16; 'cmd': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'run:': 0.16; 'tjg': 0.16; 'too).': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'example': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'skip:p 30': 0.29; 'code': 0.31; 'skip:# 10': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'test': 0.35; 'there': 0.35; 'half': 0.37; 'too': 0.37; 'system,': 0.38; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'skip:. 10': 0.39; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; "you're": 0.61; 'from:addr:mail': 0.83; "'2',": 0.84; 'nagy': 0.84; 'dozen': 0.91; 'this!': 0.93; 'serious': 0.97 Date: Mon, 24 Feb 2014 19:26:40 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Install python 2 and 3 in the "wrong" order References: <52FCB228.5040301@shopzeus.com> <52FCB389.3070402@timgolden.me.uk> <52FF4E9F.7070209@shopzeus.com> In-Reply-To: <52FF4E9F.7070209@shopzeus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393269980 news.xs4all.nl 2914 [2001:888:2000:d::a6]:43783 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66996 On 15/02/2014 11:25, Nagy László Zsolt wrote: > >> From a cmd window: >> >> ftype python.file="C:\Windows\py.exe" "%1" %* >> >> ftype python.noconfile="C:\Windows\pyw.exe" "%1" %* > There is a serious problem with this! Example code test.py: > > #!/usr/bin/env python3 > import sys > print(sys.argv) > > Test run: > > C:\Temp>test.py 1 2 3 > ['C:\\Temp\\test.py'] > > This is too bad! Can somebody tell me what would be the good setup for > py.exe? Do I have to reinstall Python3 with all libs? :-s Nagy, are you still seeing this behaviour? Because my system, with the exact ftype confiiguration you're describing, behaves as you would expect. c:\Users\tim>assoc .py .py=Python.File c:\Users\tim>ftype python.file python.file="C:\Windows\py.exe" "%1" %* c:\Users\tim>t.py 1 2 3 ['C:\\Users\\tim\\t.py', '1', '2', '3'] I have 2.7 & 3.3 installed (and about half a dozen other versions, too). TJG