os.popen() and (IDLE, PythonWin) ?

Gordon McMillan gmcm at hypernet.com
Mon Nov 1 07:24:47 EST 1999


Marc-Andre wrote:
> "M.-A. Lemburg" wrote:
> > 
> > [os.popen('ver') fails under IDLE and PythonWin, yet works
> > under "normal"
> >  Python]
> 
> Ok, I found the FAQ entry on this:
> 
> 7.13. Why doesn't os.popen() work in PythonWin on NT?
[snip]
> Under PythonWin this is no problem (although I wish os.popen
> would automatically choose the different approach for me in the
> above setup). Yet under IDLE I have a problem: win32 doesn't have
> to be installed... is there some other workaround ?

tempfile and redirection :-(.

- Gordon




More information about the Python-list mailing list