parent
2bd11fd377
commit
422ec8e075
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue