Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66419 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-02-15 22:36 +1100 |
| Last post | 2014-02-15 22:36 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Install python 2 and 3 in the "wrong" order Chris Angelico <rosuav@gmail.com> - 2014-02-15 22:36 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-02-15 22:36 +1100 |
| Subject | Re: Install python 2 and 3 in the "wrong" order |
| Message-ID | <mailman.6985.1392464172.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web