comparison web/templog.wsgi @ 410:910324f14fe4

- 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 5026780c2dc7
children abc837a7e60f
comparison
equal deleted inserted replaced
409:1854abee5a59 410:910324f14fe4
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