def __init__(self, publish_queue): builtin_plugins = os.sep.join([os.path.dirname(__file__), "resources"]) custom_plugins = config.controller['custom_plugins'] sys.path.append(custom_plugins) resources_path_list = [builtin_plugins, custom_plugins] self.load_packages(resources_path_list) for controller in registry.itervalues(): controller.publish_queue = publish_queue
def __init__(self, scheduler, publish_queue): persister = Persistence() builtin_plugins = os.sep.join([os.path.dirname(__file__), "resources"]) self.opts = config.controller custom_plugins = self.opts['custom_plugins'] sys.path.append(custom_plugins) resources_path_list = [builtin_plugins, custom_plugins] self.load_packages(resources_path_list) for controller in registry.itervalues(): controller.scheduler = scheduler controller.persister = persister controller.publish_queue = publish_queue controller.watch()