9 Mar
2004
9 Mar
'04
7:40 p.m.
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