forked from MycroftAI/mycroft-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·25 lines (21 loc) · 1.02 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
#!/usr/bin/env bash
TOP=$(cd $(dirname $0) && pwd -L)
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
case $1 in
"service") SCRIPT=${TOP}/mycroft/messagebus/service/main.py ;;
"skills") SCRIPT=${TOP}/mycroft/skills/main.py ;;
"skill_container") SCRIPT=${TOP}/mycroft/skills/container.py ;;
"voice") SCRIPT=${TOP}/mycroft/client/speech/main.py ;;
"cli") SCRIPT=${TOP}/mycroft/client/text/cli.py ;;
"audiotest") SCRIPT=${TOP}/mycroft/util/audio_test.py ;;
"collector") SCRIPT=${TOP}/mycroft_data_collection/cli.py ;;
"unittest") SCRIPT=${TOP}/test/test_runner.py ;;
"sdkdoc") SCRIPT=${TOP}/doc/generate_sdk_docs.py ;;
"enclosure") SCRIPT=${TOP}/mycroft/client/enclosure/enclosure.py ;;
"pairing") SCRIPT=${TOP}/mycroft/pairing/client.py ;;
*) echo "Usage: start.sh [service | skills | skill_container | voice | cli | audiotest | collector | unittest | enclosure | pairing | sdkdoc ]"; exit ;;
esac
echo "Starting $@"
shift
source ${VIRTUALENV_ROOT}/bin/activate
PYTHONPATH=${TOP} python ${SCRIPT} $@