From 7004b454059740195770b87b01277242afd85122 Mon Sep 17 00:00:00 2001 From: Philip Trauner Date: Thu, 2 Jun 2016 20:02:58 +0200 Subject: [PATCH] Reworked simulated Wallaby startup logic --- Wallaby/Wallaby.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Wallaby/Wallaby.py b/Wallaby/Wallaby.py index 0120db8..5db93c8 100644 --- a/Wallaby/Wallaby.py +++ b/Wallaby/Wallaby.py @@ -17,7 +17,11 @@ import _thread CHANNEL = "w" IS_WALLABY = is_wallaby() -PATH = "/home/root/Documents/KISS/bin/" if IS_WALLABY else sys.argv[1] +PATH = "/home/root/Documents/KISS/bin/" if IS_WALLABY else (sys.argv[1] if len(sys.argv) > 1 else None) + +if not PATH: + Logging.error("No path specified. (Necessary on simulated Wallaby controllers.)") + exit(1) if not IS_WALLABY: Logging.warning("Binaries that were created for Wallaby Controllers will not run on a simulated Wallaby.")