From ee90a35805b41bd6b36fbecc776d8451b73f6ddb Mon Sep 17 00:00:00 2001 From: Leon Li Date: Thu, 27 Jun 2024 23:30:55 -0700 Subject: [PATCH] fix: adaptor wheel override --- src/deadline/maya_submitter/maya_render_submitter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/deadline/maya_submitter/maya_render_submitter.py b/src/deadline/maya_submitter/maya_render_submitter.py index 9dbd788..e3088f2 100644 --- a/src/deadline/maya_submitter/maya_render_submitter.py +++ b/src/deadline/maya_submitter/maya_render_submitter.py @@ -291,12 +291,6 @@ def _get_job_template( + f"Actual: {wheels_path_package_names}" ) - override_adaptor_wheels_param = [ - param - for param in override_environment["parameterDefinitions"] - if param["name"] == "OverrideAdaptorWheels" - ][0] - override_adaptor_wheels_param["default"] = str(wheels_path) override_adaptor_name_param = [ param for param in override_environment["parameterDefinitions"] @@ -418,6 +412,9 @@ def _get_parameter_values( # If we're overriding the adaptor with wheels, remove the adaptor from the Packages parameters if settings.include_adaptor_wheels: + wheels_path = str(Path(__file__).parent.parent.parent.parent / "wheels") + parameter_values.append({"name": "OverrideAdaptorWheels", "value": wheels_path}) + rez_param = {} conda_param = {} # Find the Packages parameter definition