diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 2291af6d456d2673a3e62fe5071abbc2fc3fb757..8488215e868914184ca8beae89b0a2693409a43b 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -114,15 +114,20 @@ if WIN: elif os.path.isdir('/usr/lib64/zope/lib/python'): software_home = '/usr/lib64/zope/lib/python' zope_home = '/usr/lib64/zope' -else: +elif os.path.isdir('/usr/lib/zope/lib/python'): software_home = '/usr/lib/zope/lib/python' zope_home = '/usr/lib/zope' - +else: + software_home = '/usr/lib/erp5/lib/python' + zope_home = '/usr/lib/erp5' # handle 'system global' instance and windows if WIN: real_instance_home = os.path.join(erp5_home, 'ERP5Instance') elif tests_framework_home.startswith('/usr/lib'): - real_instance_home = '/var/lib/zope' + if os.path.isdir('/var/lib/zope'): + real_instance_home = '/var/lib/zope' + else: + real_instance_home = '/var/lib/erp5' else: real_instance_home = os.path.sep.join( tests_framework_home.split(os.path.sep)[:-3])