diff options
Diffstat (limited to 'git-interface/db.py')
-rw-r--r-- | git-interface/db.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/git-interface/db.py b/git-interface/db.py index d3e1e697..c4c7d31c 100644 --- a/git-interface/db.py +++ b/git-interface/db.py @@ -1,15 +1,12 @@ -import configparser import mysql.connector -import os + +import config class Connection: _conn = None def __init__(self): - config = configparser.RawConfigParser() - config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config") - aur_db_host = config.get('database', 'host') aur_db_name = config.get('database', 'name') aur_db_user = config.get('database', 'user') |