Message133452
attempting to run an os.system command under the idle 3 shell swallows the out put.
Idle 3 is running on a 32 bit kde mandriva linux.
>>> import os
>>> os.system('ls')
0
>>> os.system('pwd')
0
as you can see it returns a 0 indicating successful completion, but no output. However os.getcwd works perfectly.
>>> os.getcwd()
'/home/kent/Documents'
running the same code from python in an xwindow terminal works fine.
apparently the idle shell does not echo the the standard output or error output as the python interpreter does. |
|
Date |
User |
Action |
Args |
2011-04-10 07:45:41 | Thekent | set | recipients:
+ Thekent |
2011-04-10 07:45:40 | Thekent | set | messageid: <1302421540.99.0.957938249964.issue11820@psf.upfronthosting.co.za> |
2011-04-10 07:45:39 | Thekent | link | issue11820 messages |
2011-04-10 07:45:38 | Thekent | create | |
|