Mercurial > templog
annotate web/templog.wsgi @ 255:8ef52f27cf95
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 08 Jun 2015 22:32:34 +0800 |
parents | 141948a400a6 |
children |
rev | line source |
---|---|
238
509a1be16456
gevent doesn't work well with subprocess
Matt Johnston <matt@ucc.asn.au>
parents:
237
diff
changeset
|
1 #from gevent import monkey; monkey.patch_all() |
237 | 2 |
85 | 3 import os |
4 import sys | |
5 # Change working directory so relative paths (and template lookup) work again | |
6 thisdir = os.path.dirname(__file__) | |
7 os.chdir(thisdir) | |
104
7f3fc0980df1
- few more web tweaks. don't fsync, it's slow.
Matt Johnston <matt@ucc.asn.au>
parents:
85
diff
changeset
|
8 os.environ['LD_LIBRARY_PATH'] = '/home/matt/templog/web' |
85 | 9 |
10 # for some reason local imports don't work... | |
11 sys.path.append(thisdir) | |
12 | |
13 import bottle | |
14 import templog | |
15 application = bottle.default_app() |