HMS Surprise napisaĆ(a): > Tried executing os.chdir("c:\twill") from a python Tk shell and got > the error message: > > WindowsError: [Error 123] The filename, directory name, or volume > label syntax is incorrect: 'c:\twill'. > > I have the directory exists as I copied the name from the explorer > window that was open to it. > > What is wrong with the syntax?
Unescaped '\' character. Try with raw string (r"c:\twill") or escape it ("c:\\twill"). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list