Re: A tale of two execs

2009-03-12 Thread Aahz
[slowly catching up...] In article <9095ae87-c11d-4439-aeed-05533c610...@m24g2000vbp.googlegroups.com>, Carl Banks wrote: > >Distributing the interpreter doesn't look quite as silly as it did >this morning now, does it? +1 QOTW, three weeks late -- Aahz (a...@pythoncraft.com) <*>

Re: A tale of two execs

2009-02-24 Thread Carl Banks
On Feb 23, 9:13 pm, aha wrote: > Hello All, >   It occurred to me that I might just want to try copying the > subprocess.py installed in a /usr/lib/python24 installation to the > directory where I place the scripts that I need to launch my > application...I know this was mentioned earlier.  Anyway

Re: A tale of two execs

2009-02-23 Thread aha
Hello All, It occurred to me that I might just want to try copying the subprocess.py installed in a /usr/lib/python24 installation to the directory where I place the scripts that I need to launch my application...I know this was mentioned earlier. Anyway, my application worked under python 2.3 a

Re: A tale of two execs

2009-02-23 Thread Steve Holden
aha wrote: > I've decided to change the runCmdLine method to Popen. > [...] So just exactly why was it necessary to follow this remark with about three hundred lines of quoted text? And can't you put your replies at the bottom rather than the top, please? And trim the stuff that isn't required. It

Re: A tale of two execs

2009-02-23 Thread aha
I've decided to change the runCmdLine method to Popen. On Feb 23, 4:54 pm, aha wrote: > Hello All, >   So below is my naive attempt at the wrapper, it is only half baked > since I am no master at Interprocess communication... I know that it > is lacking a lot of things comment greatly appreciated:

Re: A tale of two execs

2009-02-23 Thread aha
Hello All, So below is my naive attempt at the wrapper, it is only half baked since I am no master at Interprocess communication... I know that it is lacking a lot of things comment greatly appreciated: #!/usr/bin/env python import os, sys, re, exceptions try: import subprocess except Impor

Re: A tale of two execs

2009-02-23 Thread Christian Heimes
aha wrote > def runner(cmd, stdin, stdout, ...): > try: > import subprocess > sbm = 1 > except: > sbm = 0 > > # Now do something > if sbm: > process = subporcess(...) > else: > import popen2 > process = popen2.Popen4(...) > > Has anyone else run into a situation

Re: A tale of two execs

2009-02-23 Thread Christian Heimes
bieff...@gmail.com wrote > I checked, and, for windows platform subprocess.py uses the modules > mvscrt and _subprocess, which I ham unable to > locate on my windows XP python 2.6 installation. This make the whole > thing harder, even impossible if _subprocess has > been created especially for subp

Re: A tale of two execs

2009-02-23 Thread bieffe62
On Feb 23, 6:06 pm, bieff...@gmail.com wrote: > On Feb 23, 5:53 pm, aha wrote: > > > > > > > Hello All, > >   I am working on a project where I need to support versions of Python > > as old as 2.3. Previously, we distributed Python with our product, but > > this seemed a bit silly so we are no lon

Re: A tale of two execs

2009-02-23 Thread bieffe62
On Feb 23, 5:53 pm, aha wrote: > Hello All, >   I am working on a project where I need to support versions of Python > as old as 2.3. Previously, we distributed Python with our product, but > this seemed a bit silly so we are no longer doing this.  The problem > that I am faced with is that we hav

Re: A tale of two execs

2009-02-23 Thread Matt Nordhoff
aha wrote: > Hello All, > I am working on a project where I need to support versions of Python > as old as 2.3. Previously, we distributed Python with our product, but > this seemed a bit silly so we are no longer doing this. The problem > that I am faced with is that we have Python scripts that

A tale of two execs

2009-02-23 Thread aha
Hello All, I am working on a project where I need to support versions of Python as old as 2.3. Previously, we distributed Python with our product, but this seemed a bit silly so we are no longer doing this. The problem that I am faced with is that we have Python scripts that use the subprocess m