mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
implemented base of deadline module
This commit is contained in:
parent
9c6494ecb5
commit
6232b59a9a
2 changed files with 27 additions and 0 deletions
6
pype/modules/deadline/__init__.py
Normal file
6
pype/modules/deadline/__init__.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from .deadline_module import DeadlineModule
|
||||
|
||||
|
||||
__all__ = (
|
||||
"DeadlineModule",
|
||||
)
|
||||
21
pype/modules/deadline/deadline_module.py
Normal file
21
pype/modules/deadline/deadline_module.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
from .. import PypeModule
|
||||
|
||||
|
||||
class DeadlineModule(PypeModule):
|
||||
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 pype implementation."""
|
||||
return {
|
||||
"DEADLINE_REST_URL": self.deadline_url
|
||||
}
|
||||
|
||||
def connect_with_modules(self, *_a, **_kw):
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue