Commit ac948036 authored by Jérome Perrin's avatar Jérome Perrin

if both /usr/lib/erp5/ exists, give it priority over the old /usr/lib/zope


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17439 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37d98e0a
......@@ -117,20 +117,20 @@ if WIN:
elif os.path.isdir('/usr/lib64/zope/lib/python'):
software_home = '/usr/lib64/zope/lib/python'
zope_home = '/usr/lib64/zope'
elif os.path.isdir('/usr/lib/zope/lib/python'):
software_home = '/usr/lib/zope/lib/python'
elif os.path.isdir('/usr/lib/erp5/lib/python'):
software_home = '/usr/lib/erp5/lib/python'
zope_home = '/usr/lib/zope'
else:
software_home = '/usr/lib/erp5/lib/python'
zope_home = '/usr/lib/erp5'
software_home = '/usr/lib/zope/lib/python'
zope_home = '/usr/lib/zope'
# handle 'system global' instance and windows
if WIN:
real_instance_home = os.path.join(erp5_home, 'ERP5Instance')
elif tests_framework_home.startswith('/usr/lib'):
if os.path.isdir('/var/lib/zope'):
real_instance_home = '/var/lib/zope'
else:
if os.path.isdir('/var/lib/erp5'):
real_instance_home = '/var/lib/erp5'
else:
real_instance_home = '/var/lib/zope'
else:
real_instance_home = os.path.sep.join(
tests_framework_home.split(os.path.sep)[:-3])
......
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