From a992859c23b9fe33d2623f5ec53c58c48699ed05 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 4 Jan 2017 00:34:59 +0100 Subject: Moving config read to entry script --- butler.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'butler.py') diff --git a/butler.py b/butler.py index 03f79d1..35a84d6 100644 --- a/butler.py +++ b/butler.py @@ -1,6 +1,14 @@ +import json +import __main__ + +from os import path + from ausbutler.interface import Interface -i = Interface() +config = json.load( + open(path.join(path.dirname(__main__.__file__), 'config', 'butler.json'))) + +i = Interface(config) i.init_db() i.populate_db() i.opp_scores() -- cgit v1.2.3