Invalid syntax error

Xavier Ho contact at xavierho.com
Sun Dec 20 08:52:32 EST 2009


Putting quotemarks "" around the path would be a good start, I think.

Cheers,
Xav

On Sun, Dec 20, 2009 at 11:40 PM, Ray Holt <mrholtsr at sbcglobal.net> 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 is
> invalid syntax. Why is it saying this when I am trying to change directory
> to c:\Python_Modules. Thanks, Ray
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091220/23b5e2ee/attachment-0001.html>


More information about the Python-list mailing list