|
Pierre-Yves Chibon |
c4451c |
#-*- coding: utf-8 -*-
|
|
Pierre-Yves Chibon |
c4451c |
|
|
Pierre-Yves Chibon |
c4451c |
# The three lines below are required to run on EL6 as EL6 has
|
|
Pierre-Yves Chibon |
c4451c |
# two possible version of python-sqlalchemy and python-jinja2
|
|
Pierre-Yves Chibon |
c4451c |
# These lines make sure the application uses the correct version.
|
|
Pierre-Yves Chibon |
c4451c |
#import __main__
|
|
Pierre-Yves Chibon |
4c6c3a |
#__main__.__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4']
|
|
Pierre-Yves Chibon |
c4451c |
#import pkg_resources
|
|
Pierre-Yves Chibon |
c4451c |
|
|
Pierre-Yves Chibon |
c4451c |
#import os
|
|
Pierre-Yves Chibon |
c4451c |
## Set the environment variable pointing to the configuration file
|
|
Pierre-Yves Chibon |
c4451c |
#os.environ['PROGIT_CONFIG'] = '/etc/progit/progit.cfg'
|
|
Pierre-Yves Chibon |
c4451c |
|
|
Pierre-Yves Chibon |
c4451c |
## The following is only needed if you did not install progit
|
|
Pierre-Yves Chibon |
c4451c |
## as a python module (for example if you run it from a git clone).
|
|
Pierre-Yves Chibon |
c4451c |
#import sys
|
|
Pierre-Yves Chibon |
c4451c |
#sys.path.insert(0, '/path/to/progit/')
|
|
Pierre-Yves Chibon |
c4451c |
|
|
Pierre-Yves Chibon |
c4451c |
|
|
Pierre-Yves Chibon |
c4451c |
## The most import line to make the wsgi working
|
|
Pierre-Yves Chibon |
c4451c |
#from progit import APP as application
|
|
Pierre-Yves Chibon |
c4451c |
#application.debug = True
|