Running another python interpreter

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Oct 18 23:16:32 CEST 2007


On 18 oct, 16:55, Sushant <truthismid... at aim.com> wrote:

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

The OP said he's on Windows so that doesn't matter.

> On Thursday 18 October 2007 2:13 pm, Simon Pickles wrote:
>
> >     os.spawnv(os.P_NOWAIT, "gateway.py", ())

Try with:

os.spawnl(os.P_NOWAIT, sys.executable, sys.executable, "gateway.py")

or use the subprocess module.

--
Gabriel Genellina




More information about the Python-list mailing list