[Zope-dev] Testing package & framework.py

Stefan H. Holek stefan@epy.co.at
Tue, 21 May 2002 14:10:59 +0200


I am in the process of modifying framework.py to support INSTANCE_HOME 
installations of Zope. This involves

a) Honouring SOFTWARE_HOME when locating the Testing package
b) Adding the instance's Products and lib/python dirs to
   Products.__path__ and sys.path respectively

You can look at a preliminary draft version here:
http://www.zope.org/Members/shh/Testing/framework.py

I am however unclear about the __name__ == '__main__' test at the beginning 
of the first half of framework.py. Is this just some kind of (redundant?) 
safeguard, or is framework.py actually ment to be imported (in some cases 
at least), contradicting the comments? And, if the latter is true, what is 
the second half supposed to do (or to avoid) when framework.py is imported 
as a module?

TIA,
Stefan

--
BLOWFISH, n. - Preference for beef