[Zope-dev] Understanding 2.7 Product import
Erik A.Dahl
edahl at confmon.com
Mon Feb 16 14:00:05 EST 2004
Ok 2.7 has an instance/Products directory. What magic is letting them
be imported? I'm running a bunch of data loader scripts that create
persistent zope products. I have found that:
import Globals
sets things up so that my data loader scripts can import products
properly (even though their path is not in sys.path). I looked around
in Globals to figure out what's going on and didn't find it. It would
be nice if something in:
import Zope.
would kick off the special import magic! It seems a lot more intuitive
to have this at the top of the __main__ script instead of Globals.
-EAD
More information about the Zope-Dev
mailing list