|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|