On Sat, Feb 15, 2014 at 10:25 PM, Nagy László Zsolt <gand...@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 -- https://mail.python.org/mailman/listinfo/python-list