vigiboard / deployment / vigiboard.wsgi @ 119d7c50
History | View | Annotate | Download (542 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 | #from paste.script.util.logging_config import fileConfig |
||
12 | #fileConfig(basedir + ini_file) |
||
13 | |||
14 | import os.path |
||
15 | ini_file = '/etc/vigilo/vigiboard/settings.ini' |
||
16 | ini_file = os.path.join('/', *ini_file.split('/')) |
||
17 | |||
18 | from paste.deploy import loadapp |
||
19 | application = loadapp('config:%s' % ini_file) |