Fix audiotest launching

Launch using python -m instead of python SCRIPT_PATH
pull/1671/head
Åke Forslund 2018-07-14 08:43:17 +02:00
parent 223c88b4dd
commit 4b2a25df2c
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,6 @@ function name-to-script-path() {
"cli") _script=${DIR}/mycroft/client/text/main.py ;;
"wifi") _script=${DIR}/mycroft/client/wifisetup/main.py ;;
"skill_container") _script=${DIR}/mycroft/skills/container.py ;;
"audiotest") _script=${DIR}/mycroft/util/audio_test.py ;;
"audioaccuracytest") _script=${DIR}/mycroft/audio-accuracy-test/audio_accuracy_test.py ;;
"sdkdoc") _script=${DIR}/doc/generate_sdk_docs.py ;;
"enclosure") _script=${DIR}/mycroft/client/enclosure/main.py ;;
@ -189,7 +188,8 @@ case ${_opt} in
pytest test/integrationtests/skills/discover_tests.py "$@"
;;
"audiotest")
launch-process ${_opt}
source ${VIRTUALENV_ROOT}/bin/activate
python -m mycroft.util.audio_test "${@:1}"
;;
"audioaccuracytest")
launch-process ${_opt}