[Zope-Checkins] SVN: Zope/trunk/test.py Have test.py remove iself
from the pythonpath.
Brian Sutherland
jinty at web.de
Sat Jan 21 07:16:23 EST 2006
Log message for revision 41392:
Have test.py remove iself from the pythonpath.
Changed:
U Zope/trunk/test.py
-=-
Modified: Zope/trunk/test.py
===================================================================
--- Zope/trunk/test.py 2006-01-20 21:49:12 UTC (rev 41391)
+++ Zope/trunk/test.py 2006-01-21 12:16:22 UTC (rev 41392)
@@ -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