From f563654377a86338b7a56d6725c5f7f9e55c9714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Thu, 29 Dec 2016 02:27:36 +0000 Subject: [PATCH] interactive bots: Use dev API when in a dev setup. Now the development API (which is inside the repo, api/) is used when the envionment is a development one. Credits to Steve Howell (@showell) for the instructions on how to fix this. --- contrib_bots/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib_bots/run.py b/contrib_bots/run.py index 384a5d4..01a5ed5 100755 --- a/contrib_bots/run.py +++ b/contrib_bots/run.py @@ -11,7 +11,7 @@ our_dir = os.path.dirname(os.path.abspath(__file__)) # For dev setups, we can find the API in the repo itself. if os.path.exists(os.path.join(our_dir, '../api/zulip')): - sys.path.append('../api') + sys.path.insert(0, '../api') from zulip import Client