Running another python interpreter

Sushant truthismidway at aim.com
Thu Oct 18 15:55:00 EDT 2007


Does gateway.py has the python interpreter in the top (i.e., 
#!/usr/local/bin/python)

-Sushant.
On Thursday 18 October 2007 2:13 pm, Simon Pickles wrote:
> 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