Re: Finding the right Python executable on Windows

2011-01-26 Thread Geoff Bache
On Tue, Jan 25, 2011 at 3:24 PM, Brian Curtin wrote: > On Tue, Jan 25, 2011 at 04:25, Geoff Bache wrote: >> >> Hi all, >> >> I have a Python process on Windows and would like to start a Python >> subprocess using the same interpreter. I wonder how to go about this? >> >> First, I tried the obviou

Re: Finding the right Python executable on Windows

2011-01-25 Thread Brian Curtin
On Tue, Jan 25, 2011 at 04:25, Geoff Bache wrote: > Hi all, > > I have a Python process on Windows and would like to start a Python > subprocess using the same interpreter. I wonder how to go about this? > > First, I tried the obvious > > subprocess.Popen([ sys.executable, "subproc.py", ... ]) >

Finding the right Python executable on Windows

2011-01-25 Thread Geoff Bache
Hi all, I have a Python process on Windows and would like to start a Python subprocess using the same interpreter. I wonder how to go about this? First, I tried the obvious subprocess.Popen([ sys.executable, "subproc.py", ... ]) but that fails, because my process has a "native launcher", (i.e.