mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
29 lines
892 B
Python
29 lines
892 B
Python
import os
|
|
from openpype.modules import (
|
|
PypeModule, IPluginPaths)
|
|
|
|
|
|
class DeadlineModule(PypeModule, IPluginPaths):
|
|
name = "deadline"
|
|
|
|
def initialize(self, modules_settings):
|
|
# This module is always enabled
|
|
deadline_settings = modules_settings[self.name]
|
|
self.enabled = deadline_settings["enabled"]
|
|
self.deadline_url = deadline_settings["DEADLINE_REST_URL"]
|
|
|
|
def get_global_environments(self):
|
|
"""Deadline global environments for OpenPype implementation."""
|
|
return {
|
|
"DEADLINE_REST_URL": self.deadline_url
|
|
}
|
|
|
|
def connect_with_modules(self, *_a, **_kw):
|
|
return
|
|
|
|
def get_plugin_paths(self):
|
|
"""Deadline plugin paths."""
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
return {
|
|
"publish": [os.path.join(current_dir, "plugins", "publish")]
|
|
}
|