Project

General

Profile

Revision 4ab73308

ID4ab7330878a5742ba12011d7da30f8696eb50cdb
Parent 122bc61c
Child 8c216f10

Added by Francois POIROTTE almost 7 years ago

Simplification du point d'entrée WSGI

Change-Id: I2060775fdef10f265c218aed9faa860f8d0b82fc

View differences:

deployment/vigiboard.wsgi.in
1 1
# -*- coding: utf-8 -*-
2 2
# vim: set fileencoding=utf-8 sw=4 ts=4 et ft=python :
3 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

  
4
from vigilo.turbogears import loadapp
5
application = loadapp('@SYSCONFDIR@/vigilo/vigiboard/settings.ini')

Also available in: Unified diff