Commits

Craig Swank  committed d935336

__init__.py edited online with Bitbucket

  • Participants
  • Parent commits d229701

Comments (0)

Files changed (1)

File gadgets/__init__.py

 
 class GadgetsFactory(object):
 
-    def __init__(self, addresses=None, ensure_off=False):
+    def __init__(self, addresses=None, ensure_off=False, startup_script=None):
         self._ensure_off = ensure_off
+        self._startup_script = startup_script
         if addresses is None:
             addresses = Addresses()
         self._addresses = addresses
                 factory = self._factories[device_arguments['type']]
                 gadget = factory(location, name, device_arguments, self._addresses)
                 output.append(gadget)
-        return Gadgets(output, self._addresses, ensure_off=self._ensure_off)
+        return Gadgets(output, self._addresses, ensure_off=self._ensure_off, startup_script=self._startup_script)
 
 class Gadgets(object):
     """