Python 2.6 und 3.1 parallel?

Probleme bei der Installation?
Benutzeravatar
jbs
User
Beiträge: 953
Registriert: Mittwoch 24. Juni 2009, 13:13
Wohnort: Postdam

Code: Alles auswählen

import sys

print sys.argv

Code: Alles auswählen

C:\Users\jbs\Desktop>test.py a b c
['C:\\Users\\jbs\\Desktop\\test.py']

C:\Users\jbs\Desktop>python test.py a b c
['test.py', 'a', 'b', 'c']

C:\Users\jbs\Desktop>test a b c
['C:\\Users\\jbs\\Desktop\\test.py']
Windows 7 mit python 2.6.5 :evil:
[url=http://wiki.python-forum.de/PEP%208%20%28%C3%9Cbersetzung%29]PEP 8[/url] - Quak!
[url=http://tutorial.pocoo.org/index.html]Tutorial in Deutsch[/url]
ms4py
User
Beiträge: 1178
Registriert: Montag 19. Januar 2009, 09:37

jbs hat geschrieben:Windows 7 mit python 2.6.5
dito

Code: Alles auswählen

C:\Users\marc\Desktop>test.py a b c
['C:\\Users\\marc\\Desktop\\test.py', 'a', 'b', 'c']
Da scheint was in deiner Registry kaputt zu sein ;)

Edit: So muss das aussehen:

Unter HKEY_CLASSES_ROOT\Python.File\shell\open\command
muss der Standard-Eintrag so lauten:
"C:\Python26\python.exe" "%1" %*
„Lieber von den Richtigen kritisiert als von den Falschen gelobt werden.“
Gerhard Kocher

http://ms4py.org/
Benutzeravatar
jbs
User
Beiträge: 953
Registriert: Mittwoch 24. Juni 2009, 13:13
Wohnort: Postdam

Er lautet `"C:\Python26\python.exe" "%1" %*`
[url=http://wiki.python-forum.de/PEP%208%20%28%C3%9Cbersetzung%29]PEP 8[/url] - Quak!
[url=http://tutorial.pocoo.org/index.html]Tutorial in Deutsch[/url]
Antworten