self.commands = []
for plugin in self.plugins:
self.commands.extend(plugin.commands())
+ self.command_by_name = dict(
+ [(c.name, c) for c in self.commands])
def load_drivers(self):
self.drivers = plugin_mod.load_graph(
def _cleanup_run(self, ui_to_command, command_to_ui, command):
log = logging.getLogger('hooke')
log.debug('cleanup sending CloseEngine')
- ui_to_command.put(ui.CloseEngine())
+ ui_to_command.put(engine.CloseEngine())
hooke = None
while not isinstance(hooke, Hooke):
log.debug('cleanup waiting for Hooke instance from the engine.')