def install(): """Install Harmony-specific functionality of avalon-core. This function is called automatically on calling `api.install(harmony)`. """ print("Installing Avalon Harmony...") pyblish.api.register_host("harmony") api.on("application.launched", inject_avalon_js)
def _register_events(): """Install callbacks for specific events.""" api.on("taskChanged", _on_task_changed) logger.info("Installed event callback for 'taskChanged'...")