[Zope] import strangeness

Chris Withers chrisw@nipltd.com
Mon, 14 Oct 2002 12:46:23 +0100


KevinL wrote:
> How is Zope differentiating between these two "Products"?  

It first looks in the INSTANCE_HOME one, then in the other one, known as the 
SOFTWARE_HOME.

> the two directories as a source of modules - and the attempt at building
> unit tests is running afoul of this, 

Unit testing in Zope 2 is interesting ;-)

> CookieCrumbler because /usr/lib/zope/lib/python/Products is getting in
> the way.  But Zope itself is able to deal with this perfectly.

if you 'import Zope' before hand, the rest of your stuff will work as expected.

cheers,

Chris