aboutsummaryrefslogtreecommitdiff
path: root/app/misc/config.py
blob: 34096f67fb1ec13e9467c62651a32d8525493439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import configparser
import sys

iniConfig = configparser.ConfigParser()
iniConfig.read('config.ini')

try:
    iniConfig['DATABASE']
except KeyError:
    try:
        iniConfig.read("../config.ini")
    except KeyError:
        iniConfig.read("../../config.ini")