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: