[Zope] add LocalFS in python

Passin, Tom tpassin at mitretek.org
Fri Oct 17 12:44:02 EDT 2003


[Dennis Allison]

> Argh!  Right you are -- the damn'd gratutious Microscoft change to the
> directory delimiter.  I don't do Windows in general--and when 
> I do I use
> r'c:\this\is\a\test' which does the right thing.

Yes, that's what I do too.  For those who are not that familiar with
Python, the "r" prefix indicates that the string is "raw" - characters
have their normal meaning, so that a backslash is not special.

Using os.path.join would the preferred way to build up paths, except
that it is restricted in Python Scripts.

Cheers,

Tom P



More information about the Zope mailing list