Commits

Anonymous committed 2b6055a

added mod_wsgi config

  • Participants
  • Parent commits da388ed

Comments (0)

Files changed (1)

+import sys
+import os
+import site
+
+from paste.deploy import loadapp
+
+os.environ['PYTHON_EGG_CACHE'] = tempfile.mkdtemp(prefix='moai-egg-cache-')
+
+site.addsitedir(os.path.join(os.path.abspath(os.path.dirname(__file__)),
+                             'lib',
+                             'python%d.%d' % sys.version_info[:2],
+                             'site-packages'))
+
+application = loadapp(
+    'config:%s' % os.path.join(os.path.abspath(os.path.dirname(__file__)), 
+                               'settings.ini'))