add easy launcher script
This commit is contained in:
parent
8021421018
commit
c6ee89742f
1 changed files with 17 additions and 0 deletions
17
launcher.sh
Executable file
17
launcher.sh
Executable 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
|
||||||
Loading…
Add table
Reference in a new issue