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

Date 2014-02-24 19:26 +0000
From Tim Golden <mail@timgolden.me.uk>
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>
Newsgroups comp.lang.python
Message-ID <mailman.7327.1393269980.18130.python-list@python.org> (permalink)

Show all headers | 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