--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-10-16 23:47:01 -04:00
commit da6345b0a7
1 changed files with 2 additions and 1 deletions

View File

@ -726,7 +726,8 @@ class Application(object):
# running external programs # running external programs
def run_pipe(self, args, b, name='*Output*', switch=True, modename=None): def run_pipe(self, args, b, name='*Output*', switch=True, modename=None):
pipe = Popen(args=args, stdin=PIPE, stdout=PIPE, stderr=STDOUT) pipe = Popen(args=args, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
pipe.stdin.write(b.make_string()) data = b.make_string().encode('utf-8')
pipe.stdin.write(data)
pipe.stdin.close() pipe.stdin.close()
output = pipe.stdout.read() output = pipe.stdout.read()
status = pipe.wait() status = pipe.wait()