[Grok-dev] The equivalent of zope2's package_home()

Peter Bengtsson peter at fry-it.com
Wed Jul 9 05:37:41 EDT 2008


In zope2 with package_home(globals()) you could get the Product's
directory. For example
'/home/peterbe/zope123/Products/FooProduct'

What's the equivalent in Grok?

...or do I have to combine os.path.dirname() with __file__?

-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Grok-dev mailing list