[Zope-dev] Import with INSTANCE_HOME?

Evan Simpson evan@4-am.com
Wed, 3 Jan 2001 13:54:12 -0500


From: BS <bentzion@bellatlantic.net>
> Can anyone tell me how to do a "from Products.ZPatterns import anything"
> when using INSTANCE_HOME?
> Do I have to add the INSTANCE_HOME path to sys.path?

As long as Python has already imported Zope (i.e. you're in another Product)
you don't need to do anything special.  All Product directories' contents
can be imported with "import Products.whatever".

Cheers,

Evan @ digicool & 4-am