Pipes in PythonWin

Mark Hammond MarkH at ActiveState.com
Fri Feb 16 19:01:24 EST 2001


Raymond Hettinger wrote:

> Any idea how to get the pipe functions to work from within
> PythonWin?
> 
> At the the command line, this script works:
>    print os.popen('cal').read()
> 
> Within PythonWin, I get:
>   WindowsError: [Errno 2] The system cannot find the file specified
> 
> Is there some enabling step or work around?

This is a bug.  To work around it copy "w9xpopen.exe" to the same 
directory as pythonwin.exe

Mark.
-- 
Nominate Your Favorite Programmers
for the Perl and Python Active Awards!
http://www.ActiveState.com/Awards/




More information about the Python-list mailing list