diff --git a/client/ayon_core/cli.py b/client/ayon_core/cli.py index 2340696ad9..ca3dcc86ee 100644 --- a/client/ayon_core/cli.py +++ b/client/ayon_core/cli.py @@ -2,6 +2,7 @@ """Package for handling AYON command line arguments.""" import os import sys +import logging import code import traceback from pathlib import Path @@ -306,6 +307,8 @@ def _add_addons(addons_manager): def main(*args, **kwargs): + logging.basicConfig() + initialize_ayon_connection() python_path = os.getenv("PYTHONPATH", "") split_paths = python_path.split(os.pathsep) diff --git a/client/ayon_core/hooks/pre_add_last_workfile_arg.py b/client/ayon_core/hooks/pre_add_last_workfile_arg.py index bafc075888..d6110ea367 100644 --- a/client/ayon_core/hooks/pre_add_last_workfile_arg.py +++ b/client/ayon_core/hooks/pre_add_last_workfile_arg.py @@ -32,6 +32,7 @@ class AddLastWorkfileToLaunchArgs(PreLaunchHook): "openrv", "cinema4d", "silhouette", + "gaffer", } launch_types = {LaunchTypes.local} diff --git a/client/ayon_core/hooks/pre_ocio_hook.py b/client/ayon_core/hooks/pre_ocio_hook.py index d1a02e613d..12f9454a88 100644 --- a/client/ayon_core/hooks/pre_ocio_hook.py +++ b/client/ayon_core/hooks/pre_ocio_hook.py @@ -23,6 +23,7 @@ class OCIOEnvHook(PreLaunchHook): "openrv", "cinema4d", "silhouette", + "gaffer", } launch_types = set() diff --git a/client/ayon_core/lib/__init__.py b/client/ayon_core/lib/__init__.py index 477eb29c28..5ccc8d03e5 100644 --- a/client/ayon_core/lib/__init__.py +++ b/client/ayon_core/lib/__init__.py @@ -50,8 +50,10 @@ from .attribute_definitions import ( ) from .env_tools import ( + compute_env_variables_structure, env_value_to_bool, get_paths_from_environ, + merge_env_variables, ) from .terminal import Terminal @@ -166,8 +168,10 @@ __all__ = [ "path_to_subprocess_arg", "CREATE_NO_WINDOW", + "compute_env_variables_structure", "env_value_to_bool", "get_paths_from_environ", + "merge_env_variables", "ToolNotFoundError", "find_executable", diff --git a/client/ayon_core/pipeline/create/context.py b/client/ayon_core/pipeline/create/context.py index d997f464fb..05531afd05 100644 --- a/client/ayon_core/pipeline/create/context.py +++ b/client/ayon_core/pipeline/create/context.py @@ -24,7 +24,7 @@ from ayon_core.settings import get_project_settings from ayon_core.lib import is_func_signature_supported from ayon_core.lib.events import QueuedEventSystem from ayon_core.lib.attribute_definitions import get_default_values -from ayon_core.host import IWorkfileHost +from ayon_core.host import IWorkfileHost, IPublishHost from ayon_core.pipeline import Anatomy from ayon_core.pipeline.template_data import get_template_data from ayon_core.pipeline.plugin_discover import DiscoverResult @@ -49,7 +49,7 @@ from .creator_plugins import ( discover_convertor_plugins, ) if typing.TYPE_CHECKING: - from ayon_core.host import HostBase, IPublishHost + from ayon_core.host import HostBase from ayon_core.lib import AbstractAttrDef from ayon_core.lib.events import EventCallback, Event diff --git a/client/ayon_core/plugins/publish/validate_file_saved.py b/client/ayon_core/plugins/publish/validate_file_saved.py index 4f9e84aee0..7656687b4f 100644 --- a/client/ayon_core/plugins/publish/validate_file_saved.py +++ b/client/ayon_core/plugins/publish/validate_file_saved.py @@ -37,7 +37,7 @@ class ValidateCurrentSaveFile(pyblish.api.ContextPlugin): label = "Validate File Saved" order = pyblish.api.ValidatorOrder - 0.1 hosts = ["fusion", "houdini", "max", "maya", "nuke", "substancepainter", - "cinema4d", "silhouette"] + "cinema4d", "silhouette", "gaffer"] actions = [SaveByVersionUpAction, ShowWorkfilesAction] def process(self, context):