From c9c21849b0b792b59c645ef6ffe6e102d874100d Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 1 Sep 2021 11:54:01 +0200 Subject: [PATCH] Added possibility to inject 'last_workfile_path' through data --- openpype/hooks/pre_global_host_data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/hooks/pre_global_host_data.py b/openpype/hooks/pre_global_host_data.py index c669d91ad5..b32fb5e44a 100644 --- a/openpype/hooks/pre_global_host_data.py +++ b/openpype/hooks/pre_global_host_data.py @@ -43,6 +43,8 @@ class GlobalHostDataHook(PreLaunchHook): "env": self.launch_context.env, + "last_workfile_path": self.data.get("last_workfile_path"), + "log": self.log })