From 8c322c21832ba73eead9e929ef41807dbae8b137 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 29 May 2019 10:40:36 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Config.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index ac0e3d9..894f62a 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -12,8 +12,9 @@ class BotConfig(): def __init__(self): self.dict = {} + self.config = None self.filename = None - self.config = self.load_config() + self.load_config() def load_config(self): @@ -24,16 +25,14 @@ class BotConfig(): else: argv = sys.argv[1:] opts = parser.parse_args(argv) - config_module = get_configuration(opts) + self.config = get_configuration(opts) # Filename - self.filename = config_module.filename + self.filename = self.config.filename # load as dict self.dict = self.config_file_to_dict() - return config_module - def config_file_to_dict(self): configdict = dict() config = configparser.ConfigParser()