diff options
author | emkael <emkael@tlen.pl> | 2017-01-04 00:34:59 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-04 20:56:21 +0100 |
commit | a992859c23b9fe33d2623f5ec53c58c48699ed05 (patch) | |
tree | ca1ea96c2e9081e4cf0960ee5e7a40faef57c0f9 /butler.py | |
parent | 66cd9985aec868e393842d302beb3f01bcd2ba31 (diff) |
Moving config read to entry script
Diffstat (limited to 'butler.py')
-rw-r--r-- | butler.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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() |