Merge branch 'develop' into bugfix/OP-3847_maya-playblast-options-overrides

This commit is contained in:
Toke Jepsen 2023-03-16 15:12:43 +01:00 committed by GitHub
commit 796771ef15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,11 +362,11 @@ def inject_openpype_environment(deadlinePlugin):
args_str = subprocess.list2cmdline(args)
print(">>> Executing: {} {}".format(exe, args_str))
process = ProcessUtils.SpawnProcess(
exe, args_str, os.path.dirname(exe)
process_exitcode = deadlinePlugin.RunProcess(
exe, args_str, os.path.dirname(exe), -1
)
ProcessUtils.WaitForExit(process, -1)
if process.ExitCode != 0:
if process_exitcode != 0:
raise RuntimeError(
"Failed to run OpenPype process to extract environments."
)