open() error ---- what am I missing?
Delaney, Timothy
tdelaney at avaya.com
Mon Mar 18 18:22:03 EST 2002
> > In other words it was another case of: r"use raw strings for
> > filename literals under Win Python!"
>
> Possibly another case of: """
>
> In general, if you absolutely *must* hard-code filename literals in
> Python scripts, don't use "\\name" (for example) or even r"\name", use
> "/name"; the Windows API happily supports it.
>
> """
Or best of all, use os.path.normath('/name') to be absolutely certain ...
Tim Delaney
More information about the Python-list
mailing list