summaryrefslogtreecommitdiff
path: root/butler.py
diff options
context:
space:
mode:
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()