add easy launcher script

This commit is contained in:
rambros 2026-02-22 17:24:19 +05:30
parent 8021421018
commit c6ee89742f

17
launcher.sh Executable file
View file

@ -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