Support stdin for plain session.
This commit is contained in:
parent
996b135c80
commit
d6f35c9657
1 changed files with 2 additions and 2 deletions
|
@ -84,9 +84,9 @@ class PlainSession(Session):
|
|||
argv = self._prepend_user(user, argv)
|
||||
return subprocess.check_output(argv, cwd=cwd, env=env)
|
||||
|
||||
def Popen(self, args, stdout=None, stderr=None, user=None, cwd=None, env=None):
|
||||
def Popen(self, args, stdout=None, stderr=None, stdin=None, user=None, cwd=None, env=None):
|
||||
args = self._prepend_user(user, args)
|
||||
return subprocess.Popen(args, stdout=stdout, stderr=stderr, cwd=cwd, env=env)
|
||||
return subprocess.Popen(args, stdout=stdout, stderr=stderr, stdin=stdin, cwd=cwd, env=env)
|
||||
|
||||
def exists(self, path):
|
||||
return os.path.exists(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue