forked from JarbasAI/ZZZ-JarbasAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·39 lines (33 loc) · 1.6 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
TOP=$(cd $(dirname $0) && pwd -L)
if [ -z "$WORKON_HOME" ]; then
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/jarbas"}
else
VIRTUALENV_ROOT="$WORKON_HOME/jarbas"
fi
${TOP}/scripts/prepare-msm.sh
case $1 in
"service") SCRIPT=${TOP}/mycroft/messagebus/service/main.py ;;
"webchat") SCRIPT=${TOP}/mycroft/client/webchat/main.py ;;
"server") SCRIPT=${TOP}/mycroft/client/server/main.py ;;
"client") SCRIPT=${TOP}/mycroft/client/client/main.py ;;
"skills") SCRIPT=${TOP}/mycroft/skills/main.py ;;
"audio") SCRIPT=${TOP}/mycroft/audio/main.py ;;
"display") SCRIPT=${TOP}/mycroft/screen_display/main.py ;;
"wav") SCRIPT=${TOP}/mycroft/client/wave_file/main.py ;;
"skill_container") SCRIPT=${TOP}/mycroft/skills/container.py ;;
"voice") SCRIPT=${TOP}/mycroft/client/speech/main.py ;;
"cli") SCRIPT=${TOP}/mycroft/client/text/main.py ;;
"audiotest") SCRIPT=${TOP}/mycroft/util/audio_test.py ;;
"collector") SCRIPT=${TOP}/mycroft_data_collection/cli.py ;;
"unittest") SCRIPT=${TOP}/test/main.py ;;
"audioaccuracytest") SCRIPT=${TOP}/mycroft/audio-accuracy-test/audio_accuracy_test.py ;;
"sdkdoc") SCRIPT=${TOP}/doc/generate_sdk_docs.py ;;
"enclosure") SCRIPT=${TOP}/mycroft/client/enclosure/main.py ;;
"wifi") SCRIPT=${TOP}/mycroft/client/wifisetup/main.py ;;
*) echo "Usage: start.sh [service | skills | skill_container | voice | cli | server | client | audio | display | wav | audiotest| audioaccuracytest | collector | unittest | enclosure | sdkdoc | wifi]"; exit ;;
esac
echo "Starting $@"
shift
source ${VIRTUALENV_ROOT}/bin/activate
PYTHONPATH=${TOP} python ${SCRIPT} $@