Install python 2 and 3 in the "wrong" order

Chris Angelico rosuav at gmail.com
Sat Feb 15 12:36:04 CET 2014


On Sat, Feb 15, 2014 at 10:25 PM, Nagy László Zsolt
<gandalf at shopzeus.com> 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']
>

Just because I have a distrust of Windows's command interpreter, what
happens when you type:

ftype python.file

? Does it echo back what you thought it had, or has %* been eaten? If
the %* is missing, that would explain the loss of arguments.

ChrisA



More information about the Python-list mailing list