From 4183f4c0c54997e6ea3d32518ea5228f728e7fdb Mon Sep 17 00:00:00 2001 From: Sivagiri Visakan <27341353+SivagiriVisakan@users.noreply.github.com> Date: Sun, 20 May 2018 01:44:22 +0530 Subject: [PATCH] zulip-terminal: Add bot's directory to sys.path. --- zulip_bots/zulip_bots/terminal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zulip_bots/zulip_bots/terminal.py b/zulip_bots/zulip_bots/terminal.py index e7f4f42..501b6b9 100644 --- a/zulip_bots/zulip_bots/terminal.py +++ b/zulip_bots/zulip_bots/terminal.py @@ -37,6 +37,7 @@ def main(): bot_path = os.path.abspath(os.path.join(current_dir, 'bots', args.bot, args.bot+'.py')) bot_name = args.bot bot_dir = os.path.dirname(bot_path) + sys.path.insert(0, bot_dir) try: lib_module = import_module_from_source(bot_path, bot_name)