Commit f7c4f65c authored by Rob Miller's avatar Rob Miller

don't muck up the environment if Zope libs are already available

parent ded69662
...@@ -53,7 +53,11 @@ else: ...@@ -53,7 +53,11 @@ else:
zhome = scriptdir zhome = scriptdir
shome = os.path.join(zhome, 'lib', 'python') shome = os.path.join(zhome, 'lib', 'python')
sys.path.insert(0, shome) # add SOFTWARE_HOME to sys.path, but only if Zope isn't already available
try:
import Zope2
except ImportError:
sys.path.insert(0, shome)
defaults = '--tests-pattern ^tests$ -v'.split() defaults = '--tests-pattern ^tests$ -v'.split()
defaults += ['-m', defaults += ['-m',
......
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