Commit a92b6408 authored by Rob Miller's avatar Rob Miller

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

parent 539fdbb2
......@@ -53,7 +53,11 @@ else:
zhome = scriptdir
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 += ['-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