Re: execute another python script

2008-08-18 Thread Alexandru Mosoi
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

Re: execute another python script

2008-08-18 Thread Fredrik Lundh
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

execute another python script

2008-08-18 Thread Alexandru Mosoi
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