diff --git a/sebi_machine_launcher.sh b/sebi_machine_launcher.sh index 423d874..ff0bd21 100644 --- a/sebi_machine_launcher.sh +++ b/sebi_machine_launcher.sh @@ -5,6 +5,10 @@ # the interrupt signal. This is really annoying over SSH when I have # a 1-second lag anyway. trap "echo 'Received interrupt. Exiting.'; exit 0" SIGINT + +# Also loads the venv if it is present. +[ -d .venv/bin ] && source ./venv/bin/activate && echo "Entered venv" || echo "No venv detected." + until python -m src; do # Added colouring to ensure the date of shutdown and the exit code stands # out from the other clutter in the traceback that might have been output.