-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy path__init__.py
More file actions
44 lines (38 loc) · 1.68 KB
/
Copy path__init__.py
File metadata and controls
44 lines (38 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) 2026 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.
"""FlowAM integration for the Loader app.
This package provides drop-in replacements for the standard Shotgun-based
Loader models and actions, backed by Flow Asset Management (FlowAM) instead
of the ShotGrid REST API.
"""
# flake8: noqa
import sgtk
logger = sgtk.platform.get_logger(__name__)
try:
from .entity_model import MedmEntityModel
from .flowam_actions import FlowAMActions
from .latestpublish_model import MedmLatestPublishModel
from .publishhistory_model import MedmPublishHistoryModel
from .shared_cache import MedmSharedCache
from .template_queries import (
find_template_pipeline_step,
get_template_pipeline_steps,
get_templates,
)
from .thumbnail_service import MedmThumbnailService
except ImportError as exc:
logger.error(
"tk-multi-loader2: There was an error importing the 'flowam' module.\n"
"This is likely due to Flow AM features being unavailable in the "
"current version of tk-core - i.e. it is missing the Flow Integration SDK "
"('tank_vendor.flow_integration_sdk' / 'tank.flowam').\n"
"This is safe to ignore if you are not working on a Flow AM project. "
f"Upgrade tk-core to enable Flow AM publishing.\n(ImportError: {exc})"
)