From 4f227c691162e9b4e6692780990f114d4701ae80 Mon Sep 17 00:00:00 2001 From: Maksim Rakitin Date: Mon, 20 Feb 2023 10:54:21 -0500 Subject: [PATCH] Better processing of suspended installation --- startup/98-suspenders.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/startup/98-suspenders.py b/startup/98-suspenders.py index 6751493..985d477 100644 --- a/startup/98-suspenders.py +++ b/startup/98-suspenders.py @@ -56,8 +56,15 @@ RE.install_suspender(ring_suspender) #RE.install_suspender(solenoid_v_suspenderCeil) #RE.install_suspender(solenoid_v_suspenderFloor) -if not os.environ['AUTOALIGNMENT']: - RE.install_suspender(I0_suspenderFloor) +if not os.getenv('AUTOALIGNMENT', "no").lower() in ["yes", "y", "true", "1"]: + print("Installing I0_suspenderFloor...") + RE.install_suspender(I0_suspenderFloor) +else: + print("Not installing I0_suspenderFloor.") + +print("\nRE.suspenders:") +for s in RE.suspenders: + print(f" - {s}") #####################################