12 lines
376 B
Bash
Executable File
12 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
tools_path=$(dirname $(readlink -f $0))
|
|
if [ "$VIRTUAL_ENV" == "" ]; then
|
|
venv_activate="$(readlink -f "$tools_path/../.venv/bin/activate")"
|
|
echo "Activating Python virtual environment: $venv_activate"
|
|
source "$venv_activate"
|
|
else
|
|
echo "Python virtual environment already active: $VIRTUAL_ENV"
|
|
fi
|
|
python "$tools_path/py/publish_data_stream.py" $@
|