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" -- http://mail.python.org/mailman/listinfo/python-list