Calling batchtools processes from within Maya returns a handler error because of the way Maya deals with handlers. WindowsError: [Error 6] The handle is invalid
The normal fix for this is to define the handlers for the subprocess:
subprocess.check_output(
[tool_exe, sub_command, '--opt-descr'],
shell=True,
stdin=open(os.devnull, 'wb'),
stderr=subprocess.STDOUT)
I know its possible to provide args to the subprocess.Popen in __sbscall; however, those same arguments never get used in the subprocess.check_output called in __load_command_info. This results in the handle error posted above and prevents __sbscaller from continuing.
Can this be patched to allow the subprocess kwargs from __sbscaller to also pass into the subprocess for __load_command_info?