Files
tvheadend/tvhProxy/tvhProxy.sh
2023-03-28 22:47:27 +02:00

12 lines
305 B
Bash
Executable File

#!/bin/bash
if [ -f .env ] ; then
source .env
fi
# https://stackoverflow.com/questions/59895/how-to-get-the-source-directory-of-a-bash-script-from-within-the-script-itself
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
source .venv/bin/activate
python tvhProxy.py