示例#1
0
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)
示例#2
0
def _register_events():
    """Install callbacks for specific events."""

    api.on("taskChanged", _on_task_changed)
    logger.info("Installed event callback for 'taskChanged'...")