Log message for revision 74945:
  Make Python willing to parse .pth files in /lib/python .

Changed:
  U   
Zope/branches/tseaver-instlib_as_site_dir/lib/python/Zope2/Startup/handlers.py

-=-
Modified: 
Zope/branches/tseaver-instlib_as_site_dir/lib/python/Zope2/Startup/handlers.py
===================================================================
--- 
Zope/branches/tseaver-instlib_as_site_dir/lib/python/Zope2/Startup/handlers.py  
    2007-04-30 21:43:14 UTC (rev 74944)
+++ 
Zope/branches/tseaver-instlib_as_site_dir/lib/python/Zope2/Startup/handlers.py  
    2007-04-30 21:44:21 UTC (rev 74945)
@@ -1,4 +1,5 @@
 import os
+import site
 import sys
 import time
 import logging
@@ -178,6 +179,7 @@
 
     # Add directories to the pythonpath; always insert instancehome/lib/python
     instancelib = os.path.join(config.instancehome, 'lib', 'python')
+    site.addsitedir(instancelib)
     if instancelib not in config.path:
         config.path.append(instancelib)
     path = config.path[:]

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

Reply via email to