guess what im asking is if there you can specify the process id for example
to the Popen method and have it use the process if it already exists or
create one if it doesnt

2018-02-21 14:53 GMT+01:00 Juan Cristóbal Quesada <
juan.cristobal...@gmail.com>:

> Hi,
> i would like to run several maya scripts from the command line and i would
> like each script to be executed by the same mayapy.exe instance.
>
> the intention is to run this command line from another python script via
> subprocess.Popen... so the desired behaviour is to have a single instance
> of the mayapy.exe subprocess (as a detached process) and issue different
> scripts to this.
>
> More generically... is it possible to run different commands to the same
> process? something like:
>
> p1 = subprocess.Popen([interpreter.exe,script1,arg1,arg2])
>
> p2 = subprocess.Popen([interpreter.exe,script2,arg3,arg2])
>
> and have script2 be ran by the same process as script1? (not just another
> instance?)
>
>
>

-- 
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/CANOg8wWS8YJ0VwY%2BjQPVhdhGGwKREssmHWJqRt9X5KrjPg5aqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to