mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
17 lines
598 B
Python
17 lines
598 B
Python
#-*- coding: utf-8 -*-
|
|
|
|
# The three lines below are required to run on EL6 as EL6 has
|
|
# two possible version of python-sqlalchemy and python-jinja2
|
|
# These lines make sure the application uses the correct version.
|
|
import __main__
|
|
__main__.__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4']
|
|
import pkg_resources
|
|
|
|
import os
|
|
# Set the environment variable pointing to the configuration file
|
|
os.environ['FEDORA_ELECTIONS_CONFIG'] = '/etc/fedora-elections/fedora-elections.cfg'
|
|
|
|
# The most import line to make the wsgi working
|
|
from fedora_elections import APP as application
|
|
application.debug = True
|