ich vermute daß es an meinem Python liegt (Ver. 2.6 unter Win7) -anscheinend werden die Parameter die ich über die DOS Konsole eingebe ignoriert:
Hier mein Code (aus einem Tutorial):
Code: Alles auswählen
#!/usr/bin/python
# demo.py - CMD Args Demo By nixCraft
import sys
# Get the total number of args passed to the demo.py
total = len(sys.argv)
# Get the arguments list
cmdargs = str(sys.argv)
# Print it
print ("The total numbers of args passed to the script: %d " % total)
print ("Args list: %s " % cmdargs)
Code: Alles auswählen
C:\Python26>demo.py arg1 arg2 arg3
The total numbers of args passed to the script: 1
Args list: ['C:\\Python26\\demo.py']
Hat jemand eine Idee voran es liegen könnte?
Danke und Grüße