Add ability out to screen for process

develop
Mike Hiretsky 14 years ago
parent 9731b2e6e1
commit c3dd11e18c

@ -176,6 +176,10 @@ class process:
stdin=self._defaultStdin
else:
stdin=kwarg["stdin"].getStdout
if not "stdout" in kwarg:
self.stdout=PIPE
else:
self.stdout=kwarg["stdout"]
self.stderr = kwarg.get("stderr",PIPE)
self.command = [command] + list(params)
self.stdin = stdin
@ -188,7 +192,7 @@ class process:
"""Open pipe if it not open"""
if not self.pipe:
self.pipe = Popen(self.command,
stdout=PIPE,
stdout=self.stdout,
stdin=self.stdin(),
stderr=self.stderr)

Loading…
Cancel
Save