From d809d6e4b6671441ce720d29419a0db50d8cf510 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 3 Jun 2020 11:50:32 +0100 Subject: [PATCH] fix(celaction): missing environment var for opening workfile --- pype/hooks/celaction/prelaunch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pype/hooks/celaction/prelaunch.py b/pype/hooks/celaction/prelaunch.py index ffd3a78bf3..55956a7481 100644 --- a/pype/hooks/celaction/prelaunch.py +++ b/pype/hooks/celaction/prelaunch.py @@ -65,7 +65,7 @@ class CelactionPrelaunchHook(PypeHook): workfile_path = os.path.join(workdir, workfile) - # create workfile from template if doesnt exist any on path + # copy workfile from template if doesnt exist any on path if not os.path.isfile(workfile_path): # try to get path from environment or use default # from `pype.celation` dir @@ -81,6 +81,9 @@ class CelactionPrelaunchHook(PypeHook): self.log.info(f"Workfile to open: `{workfile_path}`") + # adding compulsory environment var for openting file + env["PYPE_CELACTION_PROJECT_FILE"] = workfile_path + # setting output parameters path = r"Software\CelAction\CelAction2D\User Settings" winreg.CreateKey(winreg.HKEY_CURRENT_USER, path)