From 8a6b5981795fc65c994d8e42c78f23a6c8d10498 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 5 Jan 2017 13:17:18 +0100 Subject: Refactoring - config loading helper --- butler.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'butler.py') 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() -- cgit v1.2.3