ldt/web/ldtplatform/wsgi.py
changeset 19 821b602056a8
parent 1 08f6e99af174
child 35 a54d72ee2e41
--- a/ldt/web/ldtplatform/wsgi.py	Fri Sep 21 11:13:21 2012 +0900
+++ b/ldt/web/ldtplatform/wsgi.py	Thu Oct 11 10:27:45 2012 +0200
@@ -13,10 +13,16 @@
 framework.
 
 """
-import os
+import sys,os
 
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ldtplatform.settings")
 
+sys.path.append(os.environ['PROJECT_PATH'])
+for path in os.environ.get('PYTHON_PATH',"").split(os.pathsep):
+    if path:
+        site.addsitedir(path)
+
+
 # This application object is used by any WSGI server configured to use this
 # file. This includes Django's development server, if the WSGI_APPLICATION
 # setting points here.