On Aug 18, 11:34 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> >>> import sys, subprocess
> >>> subprocess.call([sys.executable, "-c", "print 'hello'"])
> hello
> 0
10x :). exactly what I was looking for.
--
http://mail.python.org/mailman/listinfo/python-list
Alexandru Mosoi wrote:
how do I execute another python script under a different process? I
want the script to be run using the same interpretoer as the one
running current script. I tried using os.execlp but I don't know how
to get the name/path of the interpreter.
>>> import s
how do I execute another python script under a different process? I
want the script to be run using the same interpretoer as the one
running current script. I tried using os.execlp but I don't know how
to get the name/path of the interpreter.
--
http://mail.python.org/mailman/listinfo/python-list