[Zope-Checkins] SVN: Zope/trunk/lib/python/App/FindHomes.py Base the default location of softwarehome on Zope2, which is guaranteed not to be a namespace but always located inside the Zope2 software home. This fixes Zope2 breaking on systems which uses namespace packages for Products.*

Wichert Akkerman wichert at wiggy.net
Tue Nov 13 04:17:28 EST 2007


Log message for revision 81815:
  Base the default location of softwarehome on Zope2, which is guaranteed not to be a namespace but always located inside the Zope2 software home. This fixes Zope2 breaking on systems which uses namespace packages for Products.*

Changed:
  U   Zope/trunk/lib/python/App/FindHomes.py

-=-
Modified: Zope/trunk/lib/python/App/FindHomes.py
===================================================================
--- Zope/trunk/lib/python/App/FindHomes.py	2007-11-13 08:55:24 UTC (rev 81814)
+++ Zope/trunk/lib/python/App/FindHomes.py	2007-11-13 09:17:28 UTC (rev 81815)
@@ -26,7 +26,8 @@
 try:
     home = os.environ['SOFTWARE_HOME']
 except KeyError:
-    home = os.path.abspath(package_home(Products.__dict__))
+    import Zope2
+    home = os.path.abspath(package_home(Zope2.__dict__))
 
     home, e = os.path.split(home)
     d, e = os.path.split(home)



More information about the Zope-Checkins mailing list