Invalid syntax error
Todd A. Jacobs
tjacobs-sndr-4cf4f4 at codegnome.org
Sun Dec 20 11:54:22 EST 2009
On Sun, Dec 20, 2009 at 08:40:05AM -0500, Ray Holt wrote:
> Why am I getting an invalid syntax error on the following:
> os.chdir(c:\\Python_Modules). The error message says the colon after c
You need to pass either a string literal or a variable. If you're
passing a string, like you are trying to do, then you need to quote it.
Also, you may want to use os.path.join() to make sure you're passing a
portable pathname.
--
"Oh, look: rocks!"
-- Doctor Who, "Destiny of the Daleks"
More information about the Python-list
mailing list