16 lines
370 B
Bash
Executable File
16 lines
370 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Directory of *this* script
|
|
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
|
|
|
RHASSPY_APP=/usr/share/rhasspy
|
|
RHASSPY_RUN=$RHASSPY_APP
|
|
|
|
if [[ -f "$CONFIG_PATH" ]]; then
|
|
RHASSPY_RUN="$(jq --raw-output '.run_dir' $CONFIG_PATH)"
|
|
export RHASSPY_PROFILE="$(jq --raw-output '.default_profile' $CONFIG_PATH)"
|
|
fi
|
|
|
|
PYTHONPATH="$DIR" python3 -m rhasspy "$@"
|
|
|