Mercurial > templog
annotate web/templog.wsgi @ 577:c3bad5ceb560
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Nov 2015 22:26:54 +0800 |
parents | 0baa57b6d9ca |
children |
rev | line source |
---|---|
540
0f665a84b581
gevent doesn't work well with subprocess
Matt Johnston <matt@ucc.asn.au>
parents:
539
diff
changeset
|
1 #from gevent import monkey; monkey.patch_all() |
539 | 2 |
391 | 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) | |
410
910324f14fe4
- few more web tweaks. don't fsync, it's slow.
Matt Johnston <matt@ucc.asn.au>
parents:
391
diff
changeset
|
8 os.environ['LD_LIBRARY_PATH'] = '/home/matt/templog/web' |
391 | 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() |