os.listdir path error
Tim Roberts
timr at probo.com
Sat Aug 4 21:46:51 EDT 2007
kyosohma at gmail.com wrote:
>
>I get "SyntaxError: EOL while scanning single-quoted string", which is
>what should happen when you escape the double-quotes at the end. Not
>sure how you're getting that WindowsErrors.
>
>If I do os.listdir('c:\python24') instead, it works fine.
Yes, but only by accident. It will fail again if you try to do
os.listdir('c:\tmp'). You need to use the right quoting.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list