Skip to content

Commit

Permalink
Full imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed May 3, 2024
1 parent e5fbb20 commit ce13e86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/ayon_core/hosts/nuke/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import nuke

from pyblish import util, api
import pyblish.util
import pyblish.api
from qtpy import QtWidgets

from ayon_core import resources
Expand Down Expand Up @@ -220,14 +221,14 @@ def _submit_headless_farm(node):

host = registered_host()
create_context = CreateContext(host)
context = api.Context()
context = pyblish.api.Context()
context.data["create_context"] = create_context
# Used in pyblish plugin to determine which instance to publish.
context.data["node_name"] = node.name()
# Used in pyblish plugins to determine whether to run or not.
context.data["headless_farm"] = True

context = util.publish(context)
context = pyblish.util.publish(context)

success, error_report = create_error_report(context)

Expand Down

0 comments on commit ce13e86

Please sign in to comment.