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.
This commit is contained in:
Yago González 2016-12-29 02:27:36 +00:00 committed by showell
parent 04f7fe14fa
commit f563654377

View file

@ -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. # For dev setups, we can find the API in the repo itself.
if os.path.exists(os.path.join(our_dir, '../api/zulip')): if os.path.exists(os.path.join(our_dir, '../api/zulip')):
sys.path.append('../api') sys.path.insert(0, '../api')
from zulip import Client from zulip import Client