Fix - Deadline publish on Linux started Tray instead of headless publishing

This commit is contained in:
Petr Kalis 2021-08-12 16:45:29 +02:00
parent 75994f6f57
commit fee1d73407

View file

@ -55,9 +55,9 @@ def inject_openpype_environment(deadlinePlugin):
"AVALON_TASK, AVALON_APP_NAME"
raise RuntimeError(msg)
print("args::{}".format(args))
print("args:::{}".format(args))
exit_code = subprocess.call(args, shell=True)
exit_code = subprocess.call(args, cwd=os.path.dirname(openpype_app))
if exit_code != 0:
raise RuntimeError("Publishing failed, check worker's log")