os.popen() and (IDLE, PythonWin) ?
mal at lemburg.com
Mon Nov 1 15:27:57 CET 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?
> > 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 :-),
Y2000: 60 days left
Python Pages: http://www.lemburg.com/python/
More information about the Python-list