552
|
1 # see templog-uwsgi.ini for arguments |
|
2 |
|
3 from gevent import monkey; monkey.patch_all() |
|
4 |
|
5 import os |
|
6 import sys |
|
7 import trace |
|
8 # Change working directory so relative paths (and template lookup) work again |
|
9 thisdir = os.path.dirname(__file__) |
|
10 if not thisdir: |
|
11 thisdir="." |
|
12 os.chdir(thisdir) |
|
13 os.environ['LD_LIBRARY_PATH'] = '/home/matt/templog/web' |
|
14 |
|
15 # for some reason local imports don't work... |
|
16 sys.path.append(thisdir) |
|
17 |
|
18 import bottle |
|
19 import templog |
|
20 application = bottle.default_app() |