[Zope-Checkins]
SVN: Zope/branches/tseaver-instlib_as_site_dir/lib/python/Zope2/Startup/handlers.py
Make Python willing to parse .pth files in /lib/python .
Tres Seaver
tseaver at palladion.com
Mon Apr 30 17:44:22 EDT 2007
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[:]
More information about the Zope-Checkins
mailing list