From 6cac31457420e310604bc38a9a3c0e45dc5c36c0 Mon Sep 17 00:00:00 2001 From: Alex Hughes Date: Fri, 29 Nov 2024 11:23:27 -0800 Subject: [PATCH] Allow specifying MAYAPY exe via environmenti This matches the logic we have implemented in the `deadline-cloud-for-cinema-4d` package. Signed-off-by: Alex Hughes --- src/deadline/maya_adaptor/MayaAdaptor/adaptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deadline/maya_adaptor/MayaAdaptor/adaptor.py b/src/deadline/maya_adaptor/MayaAdaptor/adaptor.py index 885470f..0a8cbdb 100644 --- a/src/deadline/maya_adaptor/MayaAdaptor/adaptor.py +++ b/src/deadline/maya_adaptor/MayaAdaptor/adaptor.py @@ -362,7 +362,7 @@ def _start_maya_client(self) -> None: Raises: FileNotFoundError: If the maya_client.py file could not be found. """ - mayapy_exe = "mayapy" + mayapy_exe = os.environ.get("MAYA_ADAPTOR_MAYAPY_EXE", "mayapy") regexhandler = RegexHandler(self._get_regex_callbacks()) # Add the openjd namespace directory to PYTHONPATH, so that adaptor_runtime_client