better support

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-03-14 23:50:16 +00:00
parent 7d91bc1a14
commit 42d9148737
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class Man(Exec):
def _execute(self, w, **vargs):
name = vargs['name']
cmd = 'man %r' % name
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT)
#p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT)
p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
output = p.stdout.read()
result = p.wait()
status = os.WEXITSTATUS(result)