From 2f474bdb02c151a1096d4b930cd9c4cbcef62261 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Wed, 30 Aug 2017 20:57:37 +0200 Subject: [PATCH] bots: Fix broken config path generation. --- zulip_bots/zulip_bots/lib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/lib.py b/zulip_bots/zulip_bots/lib.py index e1bfa20..21d81fe 100644 --- a/zulip_bots/zulip_bots/lib.py +++ b/zulip_bots/zulip_bots/lib.py @@ -119,8 +119,7 @@ class ExternalBotHandler(object): def get_config_info(self, bot_name, section=None, optional=False): # type: (str, Optional[str], Optional[bool]) -> Dict[str, Any] - conf_file_path = os.path.realpath(os.path.join( - 'zulip_bots', 'bots', bot_name, bot_name + '.conf')) + conf_file_path = os.path.realpath(os.path.join(self._root_dir, bot_name + '.conf')) section = section or bot_name config = configparser.ConfigParser() try: