Running another python interpreter

Simon Pickles sipickles at hotmail.com
Thu Oct 18 14:13:53 EDT 2007


Well, I tried:
   
    os.spawnv(os.P_NOWAIT, "gateway.py", ())

and got:

    OSError: [Errno 8] Exec format



Simon Pickles wrote:
> Hello,
>
> I have several servers which link to each other (and of course, to clients).
>
> At present, I am starting them in turn manually. Is there a way with 
> python to say, "open gateway.py in a new interpreter window"?
>
> I looked at execv, etc, but they seem to replace the current process. 
> Ah, maybe I need spawnv().
>
> I am on windows i386, python 2.5
>
> Thanks
>
> si
>   



More information about the Python-list mailing list