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


Groups > comp.lang.python > #66996

Re: Install python 2 and 3 in the "wrong" order

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 <mail@timgolden.me.uk>
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 <mail@timgolden.me.uk>
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 <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.7327.1393269980.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

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


Thread

Re: Install python 2 and 3 in the "wrong" order Tim Golden <mail@timgolden.me.uk> - 2014-02-24 19:26 +0000

csiph-web