From 6b9a9cc968e8b1f65b99351ffe99f736dbbe074b Mon Sep 17 00:00:00 2001 From: neko404notfound <40436815+neko404notfound@users.noreply.github.com> Date: Wed, 20 Jun 2018 18:00:16 +0100 Subject: [PATCH 1/2] Update sebi_machine_launcher.sh --- sebi_machine_launcher.sh | 4 ++++ 1 file changed, 4 insertions(+) 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. From becc2d3ade5e8f9bd317dd9db562567ecff93faa Mon Sep 17 00:00:00 2001 From: neko404notfound <40436815+neko404notfound@users.noreply.github.com> Date: Wed, 20 Jun 2018 18:03:24 +0100 Subject: [PATCH 2/2] Update sebi_machine_launcher.sh --- sebi_machine_launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sebi_machine_launcher.sh b/sebi_machine_launcher.sh index ff0bd21..b6d1148 100644 --- a/sebi_machine_launcher.sh +++ b/sebi_machine_launcher.sh @@ -7,7 +7,7 @@ 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." +[ -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