redirecting output

Niels Diepeveen niels at endea.demon.nl
Fri Mar 3 11:39:11 EST 2000


Emile van Sebille schreef:

> >>> import os
> >>> os.popen("dir").read()
> Traceback (innermost last):
>   File "<pyshell#1>", line 1, in ?
>     os.popen("dir").read()
> OSError: (0, 'Error')

os.popen only works in a console session, not from pythonw. This is a
problem in the C library.

-- 
Niels Diepeveen
Endea automatisering





More information about the Python-list mailing list