try to fix python path again
This commit is contained in:
parent
1650fe7821
commit
dfe3562d3e
1 changed files with 10 additions and 4 deletions
|
@ -11,9 +11,15 @@ site_package = os.path.normpath(os.path.join(root_dir, project_module, '..', 'en
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue