Install python 2 and 3 in the "wrong" order

Tim Golden mail at timgolden.me.uk
Mon Feb 24 20:26:40 CET 2014


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



More information about the Python-list mailing list