Files
tvheadend-nm3u8dl/tvhProxy/tvhProxy.sh
2024-03-19 17:41:03 +01: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