~mwhudson/lazr-js/combo-mod_wsgi-config

« back to all changes in this revision

Viewing changes to combo.wsgi

  • Committer: Michael Hudson
  • Date: 2011-03-16 22:13:29 UTC
  • Revision ID: michael.hudson@linaro.org-20110316221329-lj4o9835u11i6b43
sort of maybe working combo.wsgi and some tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
import site
 
3
import sys
 
4
 
 
5
del sys.modules['lazr'] # cough
 
6
 
 
7
ROOT = os.path.dirname(__file__)
 
8
 
 
9
site.addsitedir(os.path.join(ROOT, 'src-py'))
 
10
print sys.path
 
11
sys.path.insert(0, sys.path.pop())
 
12
print sys.path
 
13
 
 
14
from lazr.js.combo import combo_app
 
15
 
 
16
application = combo_app(os.path.join(ROOT, "build"))