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')

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to