diff options
Diffstat (limited to 'ausbutler/db.py')
-rw-r--r-- | ausbutler/db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ausbutler/db.py b/ausbutler/db.py index c813b58..a53a273 100644 --- a/ausbutler/db.py +++ b/ausbutler/db.py @@ -1,10 +1,11 @@ import json from os import path -import __main__ from sqlalchemy import create_engine, event from sqlalchemy.orm import sessionmaker +import __main__ + config = json.load( open(path.join(path.dirname(__main__.__file__), 'config', 'db.json'))) engine = create_engine( |