diff --git a/tir/technologies/core/base.py b/tir/technologies/core/base.py index 2753f612..d1d5e196 100644 --- a/tir/technologies/core/base.py +++ b/tir/technologies/core/base.py @@ -59,10 +59,30 @@ class Base(unittest.TestCase): >>> def APWInternal(Base): """ - driver = None - wait = None + _shared_driver = None + _shared_wait = None errors = [] + @property + def driver(self): + """Property to always get the current shared driver instance""" + return Base._shared_driver + + @driver.setter + def driver(self, value): + """Property to update the shared driver for all instances""" + Base._shared_driver = value + + @property + def wait(self): + """Property to always get the current shared wait instance""" + return Base._shared_wait + + @wait.setter + def wait(self, value): + """Property to update the shared wait for all instances""" + Base._shared_wait = value + def __init__(self, config_path="", autostart=True): """ Definition of each global variable: