diff --git a/launcher.sh b/launcher.sh new file mode 100755 index 0000000..0294a94 --- /dev/null +++ b/launcher.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Get the directory where the script is located +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" + +# Check if venv exists +if [ -d "$DIR/venv" ]; then + # Activate virtual environment + source "$DIR/venv/bin/activate" + # Run the application + python3 fluxer-reaper.py "$@" +else + echo "Error: Virtual environment not found in $DIR/venv" + echo "Please ensure you have installed the requirements into a 'venv' folder." + exit 1 +fi