try to fix python path again

This commit is contained in:
j 2009-08-20 21:09:35 +02:00
parent 1650fe7821
commit dfe3562d3e

View file

@ -9,11 +9,17 @@ root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file_
site_package = os.path.normpath(os.path.join(root_dir, project_module, '..', 'env', 'lib', 'python2.5', 'site-packages'))
site.addsitedir(site_package)
# add this django project
sys.path.insert(0, root_dir)
sys.path.insert(0, os.path.join(root_dir, project_module))
sys.path.insert(0, site_package)
sys.path.append(root_dir)
sys.path.append(os.path.join(root_dir, project_module))
sys.path.append(site_package)
#remove local folders
sys.path = filter(lambda x: "local" not in x, sys.path)
site.addsitedir(site_package)
#reload if this django.wsgi gets touched
import monitor