From 663f7f318249dcb97bda1dc2c5338a0e4ef57643 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 30 May 2019 14:10:37 -0400 Subject: [PATCH] test setting up complete config --- sopel_modules/SpiceBot/Config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index 6d6508c..1bed86d 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals, absolute_import, division, print_function """A way to read the bot's config without bot""" +import sopel.config from sopel.cli.run import build_parser, get_configuration import sys @@ -25,6 +26,9 @@ class BotConfig(): # Filename self.filename = self.config.filename + # load Sopel config fully + sopel.config.Config(self.config.filename) + # load as dict config = configparser.ConfigParser() config.read(self.filename)