diff options
author | emkael <emkael@tlen.pl> | 2017-01-05 13:17:18 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-05 13:17:18 +0100 |
commit | 8a6b5981795fc65c994d8e42c78f23a6c8d10498 (patch) | |
tree | e20c52832c9369d6098cf2460d4c7c9a6a9b652d /butler.py | |
parent | 830aaabd3e8105ad47460628587660cb496f507e (diff) |
Refactoring - config loading helper
Diffstat (limited to 'butler.py')
-rw-r--r-- | butler.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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() |