[Zope-dev] Product directory?
Fred Drake
fred at zope.com
Tue Mar 9 14:40:08 EST 2004
On Tuesday 09 March 2004 02:30 pm, Chris McDonough wrote:
> There is also a convenience function for this in Zope:
>
> from Globals import package_home
> here = package_home(globals())
Maybe I'm just weird, but I generally prefer the general approach when there's
not a clear improvement in readability or brevity.
Globals.package_home() is definately a more complicated approach to digging
out the same information; it might be better for older versions of Python.
It's not available in Zope 3.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation
More information about the Zope-Dev
mailing list