Commit d20b7de0 authored by Tres Seaver's avatar Tres Seaver

Make Python willing to parse .pth files in /lib/python .

parent bf3fcb69
import os
import site
import sys
import time
import logging
......@@ -178,6 +179,7 @@ def root_handler(config):
# 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[:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment