From 26f39f8f11f1165efeff5ee1e22bc7162b0acc76 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 31 May 2019 08:41:32 -0400 Subject: [PATCH] fix filename issue --- sopel_modules/SpiceBot/Config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index 21e1f61..dced9d4 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -34,7 +34,7 @@ class BotConfig(): # load as dict config = configparser.ConfigParser() - config.read(self.filename) + config.read(self.config.filename) for each_section in config.sections(): if each_section.lower() not in self.dict.keys(): self.dict[each_section.lower()] = dict() @@ -50,8 +50,8 @@ class BotConfig(): """We will try to find a core value, or return None""" if hasattr(self.config.core, name): return eval("self.config.core." + name) - # elif name.lower() in self.dict["core"].keys(): - # return self.dict["core"][str(name).lower()] + elif name.lower() in self.dict["core"].keys(): + return self.dict["core"][str(name).lower()] elif hasattr(self.config, name): return eval("self.config." + name) else: