Point pagure to its proper config file
This commit is contained in:
parent
de67bcbea2
commit
c710f39435
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue