From baa10c6eb50fca4e5c61993774eed7857348e92b Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 24 Nov 2020 17:06:47 +0100 Subject: [PATCH] LaunchHook has few wrapped attributes --- pype/lib/applications.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pype/lib/applications.py b/pype/lib/applications.py index 80b698ecc8..675b0c90be 100644 --- a/pype/lib/applications.py +++ b/pype/lib/applications.py @@ -772,6 +772,26 @@ class LaunchHook: return True + @property + def data(self): + return self.launch_context.data + + @property + def application(self): + return getattr(self.launch_context, "application", None) + + @property + def manager(self): + return getattr(self.application, "manager", None) + + @property + def host_name(self): + return getattr(self.application, "host_name", None) + + @property + def app_name(self): + return getattr(self.application, "app_name", None) + def validate(self): """Optional validation of launch hook on initialization.