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 L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to