Project

General

Profile

Revision a9d588da

IDa9d588dab849cfc04c997b2974f21894f20d5d21
Parent 06196453
Child 90ad4b82

Added by Francois POIROTTE almost 7 years ago

Simplification du point d'entrée WSGI

Change-Id: Ic5540bd0208f5a9f9a9f7501ea1f3c732fb82f90

View differences:

deployment/vigigraph.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-vigigraph').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/vigigraph/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/vigigraph/settings.ini')

Also available in: Unified diff