Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / deployment / vigiboard.wsgi.in @ f299be9c

History | View | Annotate | Download (563 Bytes)

1
# -*- 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('vigilo-vigiboard').egg_info
8

    
9
#import os
10
#os.environ['PYTHON_EGG_CACHE'] = '@LOCALSTATEDIR@/cache/vigilo/eggs'
11

    
12
import os.path
13
ini_file = '@SYSCONFDIR@/vigilo/vigiboard/settings.ini'
14
ini_file = os.path.join('/', *ini_file.split('/'))
15

    
16
from paste.deploy import loadapp
17
application = loadapp('config:%s' % ini_file)
18

    
19
from paste.script.util.logging_config import fileConfig
20
fileConfig(ini_file)
21