socket connection is the first thing i thought of, but that implies
coding some socket listening logic in the child process, was hoping to
avoid that.
im exploring some other possibilities like talking via pipes which is
what i think you are talking when issuing commands to the stdin, or the
On Thu, Feb 22, 2018, 2:58 AM Marcus Ottosson
wrote:
> Yes, when you import my_script, it is effectively “run”. So what you can
> do is launch 1 instance of mayapy, and pass it a single script that imports
> the others.
>
> $ mayapy my_script.py
>
> *my_script.py*
>
>
Yes, when you import my_script, it is effectively “run”. So what you can do
is launch 1 instance of mayapy, and pass it a single script that imports
the others.
$ mayapy my_script.py
*my_script.py*
import other_script1import other_script2
guess what im asking is if there you can specify the
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