bots: Add dependencies management.

Adds the file api/bots_api/provision.py that installs dependencies
for bots using pip. This file is also used by run.py when running
a bot. However, for testing, you need to separately provision the bots.
This commit is contained in:
Rohitt Vashishtha 2017-06-21 20:03:09 +05:30 committed by showell
parent bafbd3689b
commit 2645c97276
6 changed files with 90 additions and 9 deletions

1
bots/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
bot_dependencies

View file

@ -0,0 +1 @@
PyDictionary

View file

@ -2,11 +2,7 @@
from __future__ import print_function
import sys
import logging
try:
from PyDictionary import PyDictionary as Dictionary
except ImportError:
logging.error("Dependency Missing!")
sys.exit(0)
from PyDictionary import PyDictionary as Dictionary
#Uses Python's Dictionary module
# pip install PyDictionary