[Zope-Checkins] SVN: Zope/branches/2.9/test.py Backport jinty's
r41392:
Philipp von Weitershausen
philikon at philikon.de
Sun Mar 12 13:37:59 EST 2006
Log message for revision 65924:
Backport jinty's r41392:
Have test.py remove iself from the pythonpath.
Changed:
U Zope/branches/2.9/test.py
-=-
Modified: Zope/branches/2.9/test.py
===================================================================
--- Zope/branches/2.9/test.py 2006-03-12 18:27:36 UTC (rev 65923)
+++ Zope/branches/2.9/test.py 2006-03-12 18:37:59 UTC (rev 65924)
@@ -21,6 +21,10 @@
import os.path, sys
+# Remove this directory from path:
+here = os.path.abspath(os.path.dirname(sys.argv[0]))
+sys.path[:] = [p for p in sys.path if os.path.abspath(p) != here]
+
shome = os.environ.get('SOFTWARE_HOME')
zhome = os.environ.get('ZOPE_HOME')
ihome = os.environ.get('INSTANCE_HOME')
More information about the Zope-Checkins
mailing list