Author Topic: batchtools handler error  (Read 4817 times)

Calling batchtools processes from within Maya returns a handler error because of the way Maya deals with handlers.
Code: [Select]
WindowsError: [Error 6] The handle is invalid
The normal fix for this is to define the handlers for the subprocess:
Code: [Select]
                [tool_exe, sub_command, '--opt-descr'],
                stdin=open(os.devnull, 'wb'),

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?