[Zope-Checkins] CVS: Zope/lib/python/App - ApplicationManager.py:1.80 FindHomes.py:1.10
Matt Behrens
matt@zigg.com
Tue, 9 Jul 2002 11:15:21 -0400
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv18358/lib/python/App
Modified Files:
ApplicationManager.py FindHomes.py
Log Message:
Add support for ZOPE_HOME and a setup.py that is capable of installing
all Zope software, based on the work in the installer branch.
All tests still pass when built with python2.1 setup.py build_ext -i :-)
=== Zope/lib/python/App/ApplicationManager.py 1.79 => 1.80 ===
return SOFTWARE_HOME
+ def getZOPE_HOME(self):
+ return ZOPE_HOME
+
def getINSTANCE_HOME(self):
return INSTANCE_HOME
=== Zope/lib/python/App/FindHomes.py 1.9 => 1.10 ===
sys.modules['__builtin__'].SOFTWARE_HOME=SOFTWARE_HOME=home
+try: zhome=os.environ['ZOPE_HOME']
+except:
+ zhome=os.path.join(home, '..', '..')
+
+zhome=realpath(zhome)
+sys.modules['__builtin__'].ZOPE_HOME=ZOPE_HOME=zhome
+
try:
chome=os.environ['INSTANCE_HOME']
chome = realpath(chome)