Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66419
| References | <52FCB228.5040301@shopzeus.com> <52FCB389.3070402@timgolden.me.uk> <52FF4E9F.7070209@shopzeus.com> |
|---|---|
| Date | 2014-02-15 22:36 +1100 |
| Subject | Re: Install python 2 and 3 in the "wrong" order |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6985.1392464172.18130.python-list@python.org> (permalink) |
On Sat, Feb 15, 2014 at 10:25 PM, Nagy László Zsolt <gandalf@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Install python 2 and 3 in the "wrong" order Chris Angelico <rosuav@gmail.com> - 2014-02-15 22:36 +1100
csiph-web