From c88fb84184886516f190b3a91e22e9b6b6c68061 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 10 Jun 2021 17:32:14 +0200 Subject: [PATCH] changed class name and docstring --- openpype/hooks/pre_foundry_apps.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/openpype/hooks/pre_foundry_apps.py b/openpype/hooks/pre_foundry_apps.py index 1b2c0c6eda..85f68c6b60 100644 --- a/openpype/hooks/pre_foundry_apps.py +++ b/openpype/hooks/pre_foundry_apps.py @@ -2,12 +2,13 @@ import subprocess from openpype.lib import PreLaunchHook -class LaunchWindowsShell(PreLaunchHook): - """Add shell command before executable. +class LaunchFoundryAppsWindows(PreLaunchHook): + """Foundry applications have specific way how to launch them. - Some hosts have issues when are launched directly from python in that case - it is possible to prepend shell executable which will trigger process - instead. + Nuke is executed "like" python process so it is required to pass + `CREATE_NEW_CONSOLE` flag on windows to trigger creation of new console. + At the same time the newly created console won't create it's own stdout + and stderr handlers so they should not be redirected to DEVNULL. """ # Should be as last hook because must change launch arguments to string