From c8c8424cb7ac4689fea14e140133e172f29907f8 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 30 Nov 2020 10:37:52 +0100 Subject: [PATCH] hooks filtering works for app_groups and app_names --- pype/lib/applications.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pype/lib/applications.py b/pype/lib/applications.py index 37eb4f9e71..ac45112511 100644 --- a/pype/lib/applications.py +++ b/pype/lib/applications.py @@ -710,6 +710,10 @@ class LaunchHook: order = None # List of host implementations, skipped if empty. hosts = [] + # List of application groups + app_groups = [] + # List of specific application names + app_names = [] # List of platform availability, skipped if empty. platforms = [] @@ -751,6 +755,14 @@ class LaunchHook: if launch_context.host_name not in cls.hosts: return False + if cls.app_groups: + if launch_context.app_group not in cls.app_groups: + return False + + if cls.app_names: + if launch_context.app_name not in cls.app_names: + return False + return True @property