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

M.-A. Lemburg mal at lemburg.com
Mon Nov 1 09:27:57 EST 1999


Gordon McMillan wrote:
> 
> 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 :-(.

Ok, but how can I prevent the shell windows
from popping up ? I read something about os.spawnv() in the docs,
but the mode argument remains a complete mystery and I always
get IOErrors about files not being found...

Any help appreciated :-),
-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                    60 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/






More information about the Python-list mailing list