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:
parent
04f7fe14fa
commit
f563654377
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue