comparison web/templog.wsgi @ 104:7f3fc0980df1

- few more web tweaks. don't fsync, it's slow.
author Matt Johnston <matt@ucc.asn.au>
date Sun, 26 Aug 2012 20:08:47 +0800
parents 3cd1ca6d0489
children abc837a7e60f
comparison
equal deleted inserted replaced
103:ef59da811986 104:7f3fc0980df1
1 import os 1 import os
2 import sys 2 import sys
3 # Change working directory so relative paths (and template lookup) work again 3 # Change working directory so relative paths (and template lookup) work again
4 thisdir = os.path.dirname(__file__) 4 thisdir = os.path.dirname(__file__)
5 os.chdir(thisdir) 5 os.chdir(thisdir)
6 os.environ['LD_LIBRARY_PATH'] = '/home/matt/templog/web'
6 7
7 # for some reason local imports don't work... 8 # for some reason local imports don't work...
8 sys.path.append(thisdir) 9 sys.path.append(thisdir)
9 10
10 import bottle 11 import bottle