Silly redirect error.

Chris Liechti cliechti at gmx.net
Fri Jan 11 23:36:43 CET 2002


yoghurtbrain at hotmail.com (Arne Weise) wrote in 
news:f025a2d.0201110847.25d9e45a at posting.google.com:
> Howdy strangers. I have this simple code in error.py:
[snip exaple 1]
> If I change it to:
>     return os.system("dir")
> then I get the error:
> "There is not enough space on the disk." (also translated)
> Im using python 2.2 btw.

don't mess around with return values of system...

try "os.popen()" instead


-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list