Point pagure to its proper config file

This commit is contained in:
Pierre-Yves Chibon 2016-07-30 10:47:19 +02:00
parent de67bcbea2
commit c710f39435

View file

@ -13,6 +13,12 @@ import json
import requests
from sqlalchemy.exc import SQLAlchemyError
if 'PAGURE_CONFIG' not in os.environ \
and os.path.exists('/etc/pagure/pagure.cfg'):
print 'Using configuration file `/etc/pagure/pagure.cfg`'
os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg'
import pagure
from pagure import SESSION