summaryrefslogtreecommitdiff
path: root/butler.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-01-05 13:17:18 +0100
committeremkael <emkael@tlen.pl>2017-01-05 13:17:18 +0100
commit8a6b5981795fc65c994d8e42c78f23a6c8d10498 (patch)
treee20c52832c9369d6098cf2460d4c7c9a6a9b652d /butler.py
parent830aaabd3e8105ad47460628587660cb496f507e (diff)
Refactoring - config loading helper
Diffstat (limited to 'butler.py')
-rw-r--r--butler.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/butler.py b/butler.py
index 655a11f..b73674c 100644
--- a/butler.py
+++ b/butler.py
@@ -1,10 +1,6 @@
-import json
-from os import path
-
-import __main__
+from ausbutler.config import load_config
from ausbutler.interface import Interface
-i = Interface(json.load(
- open(path.join(path.dirname(__main__.__file__), 'config', 'butler.json'))))
+i = Interface(load_config('butler'))
i.calculate_all()