mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
prelaunch and postlaunch hooks are diferentiated by inherit class
This commit is contained in:
parent
f97ae3f269
commit
88316fe421
4 changed files with 82 additions and 59 deletions
|
|
@ -2,10 +2,10 @@ import os
|
|||
|
||||
import ftrack_api
|
||||
from pype.api import config
|
||||
from pype.lib import LaunchHook
|
||||
from pype.lib import PostLaunchHook
|
||||
|
||||
|
||||
class PostFtrackHook(LaunchHook):
|
||||
class PostFtrackHook(PostLaunchHook):
|
||||
order = None
|
||||
|
||||
def execute(self):
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from pype.api import (
|
|||
)
|
||||
from pype.lib import (
|
||||
env_value_to_bool,
|
||||
LaunchHook,
|
||||
PreLaunchHook,
|
||||
ApplicationLaunchFailed
|
||||
)
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ import acre
|
|||
import avalon.api
|
||||
|
||||
|
||||
class GlobalHostDataHook(LaunchHook):
|
||||
class GlobalHostDataHook(PreLaunchHook):
|
||||
order = -100
|
||||
|
||||
def execute(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue