On Tue, Jul 17, 2018, 10:03 PM Ruchit Bhatt <ruchitinnewfush...@gmail.com>
wrote:

> This way ?
>>
>> import platform
>>
>> import multiprocessing
>>
>> if platform.system() == 'Windows':
>>     multiprocessing.set_executable("C:/Program
>> Files/Autodesk/Maya201x/bin/mayapy.exe")
>> elif platform.system() == 'Linux':
>>     multiprocessing.set_executable('/usr/Autodesk/maya201x/bin/mayapy')
>>
> Well no. The suggestion was to use the subprocess module to avoid forking
the potentially large Maya process and possibly hitting deadlocks.

I haven't had to use set_executable so I am not sure if that is necessary
or not.


-- 
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/cacf4c80-cacc-4593-857a-509782ba7a87%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/cacf4c80-cacc-4593-857a-509782ba7a87%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3ZKq3_bCgQKjYi%3D8Kj4c-SKESaddH78ErZUnpTvS8h-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to