moving ASSIST switch to utils

This commit is contained in:
Jakub Jezek 2023-02-21 16:06:39 +01:00 committed by Jakub Ježek
parent f3431c6279
commit fe163ab19b
4 changed files with 5 additions and 8 deletions

View file

@ -1,4 +1,3 @@
import os
from .workio import (
file_extensions,
has_unsaved_changes,
@ -51,8 +50,6 @@ from .utils import (
get_colorspace_list
)
ASSIST = bool(os.getenv("NUKEASSIST"))
__all__ = (
"file_extensions",
"has_unsaved_changes",
@ -95,7 +92,5 @@ __all__ = (
"create_write_node",
"colorspace_exists_on_node",
"get_colorspace_list",
"ASSIST"
"get_colorspace_list"
)

View file

@ -49,7 +49,8 @@ from openpype.pipeline.colorspace import (
)
from openpype.pipeline.workfile import BuildWorkfile
from . import gizmo_menu, ASSIST
from . import gizmo_menu
from .utils import ASSIST
from .workio import (
save_file,

View file

@ -60,7 +60,7 @@ from .workio import (
work_root,
current_file
)
from . import ASSIST
from .utils import ASSIST
log = Logger.get_logger(__name__)

View file

@ -4,6 +4,7 @@ import nuke
from openpype import resources
from .lib import maintained_selection
ASSIST = bool(os.getenv("NUKEASSIST"))
def set_context_favorites(favorites=None):
""" Adding favorite folders to nuke's browser