From 64be7e4a6f91fbcdf2684826e34449e0baeb48f1 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 29 May 2019 10:29:31 -0400 Subject: [PATCH] fix --- sopel_modules/SpiceBot/Config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index 6e28674..bddaaa4 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -17,17 +17,17 @@ class BotConfig(): def load_config(self): # Load config + parser = build_parser() if not len(sys.argv[1:]): argv = ['legacy'] else: argv = sys.argv[1:] - parser = build_parser() opts = parser.parse_args(argv) config_module = get_configuration(opts) # load dict config = configparser.ConfigParser() - config.read(self.config.filename) + config.read(config_module.filename) for each_section in config.sections(): if each_section not in self.dict.keys(): self.dict[each_section] = dict()