vigiboard / deployment / vigiboard.wsgi @ 0bd9c069
History | View | Annotate | Download (530 Bytes)
1 | 5dbfa80d | Francois POIROTTE | # -*- coding: utf-8 -*- |
---|---|---|---|
2 | # vim: set fileencoding=utf-8 sw=4 ts=4 et ft=python : |
||
3 | |||
4 | #import os, sys |
||
5 | #from pkg_resources import get_distribution |
||
6 | |||
7 | #egg_file = get_distribution('vigiboard').egg_info |
||
8 | |||
9 | #os.environ['PYTHON_EGG_CACHE'] = '/tmp/vigiboard/python-eggs' |
||
10 | |||
11 | import os.path |
||
12 | ini_file = '/etc/vigilo/vigiboard/settings.ini' |
||
13 | ini_file = os.path.join('/', *ini_file.split('/')) |
||
14 | |||
15 | from paste.deploy import loadapp |
||
16 | application = loadapp('config:%s' % ini_file) |
||
17 | |||
18 | 7a5f9bd5 | Aurelien BOMPARD | from paste.script.util.logging_config import fileConfig |
19 | fileConfig(ini_file) |