output of shell command

Mark Hadfield m.hadfield at niwa.cri.nz
Wed Feb 28 00:06:19 CET 2001


"Steve Holden" <sholden at holdenweb.com> wrote in message
news:pgWm6.169$jv4.27104 at e420r-atl2.usenetserver.com...
> Dunno. Still won't work for me on Windows 98. Neither, come to that, does
> the parenthesized version
>
>     a=(os.popen("dir")).readlines()
>
> I get the same error.

OK so the parentheses were a red herring. It's a difference in the behaviour
of piping in windowed applications vs console applications under Windows 9x.

---
Mark Hadfield
m.hadfield at niwa.cri.nz  http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research





More information about the Python-list mailing list