Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66996 > unrolled thread
| Started by | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| First post | 2014-02-24 19:26 +0000 |
| Last post | 2014-02-24 19:26 +0000 |
| 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 Tim Golden <mail@timgolden.me.uk> - 2014-02-24 19:26 +0000
| From | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| Date | 2014-02-24 19:26 +0000 |
| Subject | Re: Install python 2 and 3 in the "wrong" order |
| Message-ID | <mailman.7327.1393269980.18130.python-list@python.org> |
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
Back to top | Article view | comp.lang.python
csiph-web