From 0b853ef111de0ff055072ba1fa466dff22ed70f9 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 29 Nov 2017 10:37:39 +0100 Subject: [PATCH] Implement temporary workaround for yeti in deadline submission --- colorbleed/plugins/maya/publish/submit_deadline.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/colorbleed/plugins/maya/publish/submit_deadline.py b/colorbleed/plugins/maya/publish/submit_deadline.py index a0e6610744..ff6d973b47 100644 --- a/colorbleed/plugins/maya/publish/submit_deadline.py +++ b/colorbleed/plugins/maya/publish/submit_deadline.py @@ -175,16 +175,24 @@ class MindbenderSubmitDeadline(pyblish.api.InstancePlugin): } # Include critical variables with submission - environment = dict({ + keys = [ # This will trigger `userSetup.py` on the slave # such that proper initialisation happens the same # way as it does on a local machine. # TODO(marcus): This won't work if the slaves don't # have accesss to these paths, such as if slaves are # running Linux and the submitter is on Windows. - "PYTHONPATH": os.getenv("PYTHONPATH", ""), + "PYTHONPATH", - }, **api.Session) + # todo: This is a temporary fix for yeti variables + "PEREGRINEL_LICENSE", + "VRAY_FOR_MAYA2018_PLUGINS_X64", + "VRAY_PLUGINS_X64", + "VRAY_USE_THREAD_AFFINITY", + "MAYA_MODULE_PATH" + ] + environment = dict({key: os.environ[key] for key in keys + if key in os.environ}, **api.Session) payload["JobInfo"].update({ "EnvironmentKeyValue%d" % index: "{key}={value}".format(