Commit c9e8c3f7 authored by Wichert Akkerman's avatar Wichert Akkerman

Base the default location of softwarehome on Zope2, which is guaranteed not to...

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.*
parent 637314ff
......@@ -26,7 +26,8 @@ from App.Common import package_home
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment