ich versuche mich gerade mit Python 3.2 auf WinXP. Wenn ich in der python konsole bin funktioniert input(...) perfekt, allerdings versuche ich nun das programm in der shell mit "python prog.py" zu starten und er fragt nicht mehr nach user inputs.
weiss jemand wo das problem liegt? ich kriege auf linie 7 eine syntax-fehlermeldung
mein skript:
Code: Alles auswählen
import os
boards=os.listdir("T:\\LP\\LVCAM\\boards\\")
loop=true
selection=input('Enter Board-ID: ')
newpath="T:\\boards\\"+selection
newpath=str.rstrip(newpath)
while not os.path.exists("T:\\boards\\"+selection)
selection=input("Enter Board-ID: ")
newpath="T:\\boards\\"+selection
newpath=str.rstrip(newpath)
os.chdir(newpath)