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

@ -11,9 +11,15 @@ site_package = os.path.normpath(os.path.join(root_dir, project_module, '..', 'en
site.addsitedir(site_package) site.addsitedir(site_package)
# add this django project # add this django project
sys.path.insert(0, root_dir) sys.path.append(root_dir)
sys.path.insert(0, os.path.join(root_dir, project_module)) sys.path.append(os.path.join(root_dir, project_module))
sys.path.insert(0, site_package) 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 #reload if this django.wsgi gets touched
import monitor import monitor