bots: Fix broken config path generation.

This commit is contained in:
derAnfaenger 2017-08-30 20:57:37 +02:00 committed by Tim Abbott
parent bbed4a625d
commit 2f474bdb02

View file

@ -119,8 +119,7 @@ class ExternalBotHandler(object):
def get_config_info(self, bot_name, section=None, optional=False): def get_config_info(self, bot_name, section=None, optional=False):
# type: (str, Optional[str], Optional[bool]) -> Dict[str, Any] # type: (str, Optional[str], Optional[bool]) -> Dict[str, Any]
conf_file_path = os.path.realpath(os.path.join( conf_file_path = os.path.realpath(os.path.join(self._root_dir, bot_name + '.conf'))
'zulip_bots', 'bots', bot_name, bot_name + '.conf'))
section = section or bot_name section = section or bot_name
config = configparser.ConfigParser() config = configparser.ConfigParser()
try: try: