execute another python script

Alexandru Mosoi brtzsnr at gmail.com
Mon Aug 18 05:28:20 EDT 2008


On Aug 18, 11:34 am, Fredrik Lundh <fred... at pythonware.com> wrote:
>  >>> import sys, subprocess
>  >>> subprocess.call([sys.executable, "-c", "print 'hello'"])
> hello
> 0


10x :). exactly what I was looking for.



More information about the Python-list mailing list