Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Gabriel Genellina
On 7 ene, 17:37, "Fuzzyman" <[EMAIL PROTECTED]> wrote: > Two threads and a queue sounds horrible. But unfortunately it's the only way if you don't control how the child process behaves. (It's not s ugly afterwards... certainly would be worse if you had to syncronize both reading threads and t

Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Fuzzyman
Gabriel Genellina wrote: > On 7 ene, 16:33, "Fuzzyman" <[EMAIL PROTECTED]> wrote: [snip..] > > My current code works, but *doesn't* capture stderr : > > > > from threading import Thread > > > > pipe = os.popen(executable) > > > > def DisplayOutput(): > > while True: > > output = pipe.r

Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Gabriel Genellina
On 7 ene, 16:33, "Fuzzyman" <[EMAIL PROTECTED]> wrote: > Hello all, > > Before I ask the question a couple of notes : > > * This question is for implementing a script inside the Wing IDE. For > some reason using the subprocess module doesn't work so I need a > solution that doesn't use this modul

Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Fuzzyman
Hello all, Before I ask the question a couple of notes : * This question is for implementing a script inside the Wing IDE. For some reason using the subprocess module doesn't work so I need a solution that doesn't use this module. * The platform is Windows and I'm happy with a Windoze only soluti