Commit 6dd28d6a authored by Rob Miller's avatar Rob Miller

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

parent 6511ac57
......@@ -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