chdir()
Jarek Zgoda
jzgoda at o2.usun.pl
Tue May 8 16:01:50 EDT 2007
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/
More information about the Python-list
mailing list