vigigraph / deployment / vigigraph.wsgi @ d8937f15
History | View | Annotate | Download (530 Bytes)
1 | 0f317fa6 | Aurelien BOMPARD | # -*- 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/vigigraph/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 | 76ba3217 | Aurelien BOMPARD | from paste.script.util.logging_config import fileConfig |
19 | fileConfig(ini_file) |