vigiboard / deployment / vigiboard.wsgi.in @ ec5e7a22
History | View | Annotate | Download (563 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 | f299be9c | Aurelien BOMPARD | #egg_file = get_distribution('vigilo-vigiboard').egg_info |
8 | 5dbfa80d | Francois POIROTTE | |
9 | f299be9c | Aurelien BOMPARD | #import os |
10 | #os.environ['PYTHON_EGG_CACHE'] = '@LOCALSTATEDIR@/cache/vigilo/eggs' |
||
11 | 5dbfa80d | Francois POIROTTE | |
12 | import os.path |
||
13 | f299be9c | Aurelien BOMPARD | ini_file = '@SYSCONFDIR@/vigilo/vigiboard/settings.ini' |
14 | 5dbfa80d | Francois POIROTTE | ini_file = os.path.join('/', *ini_file.split('/')) |
15 | |||
16 | from paste.deploy import loadapp |
||
17 | application = loadapp('config:%s' % ini_file) |
||
18 | |||
19 | 7a5f9bd5 | Aurelien BOMPARD | from paste.script.util.logging_config import fileConfig |
20 | fileConfig(ini_file) |