Show More
@@ -59,11 +59,12 b' class ProcessHandler(object):' | |||
|
59 | 59 | |
|
60 | 60 | @property |
|
61 | 61 | def sh(self): |
|
62 |
if self._sh is None: |
|
|
63 | self._sh = pexpect.which('sh') | |
|
62 | if self._sh is None: | |
|
63 | shell_name = os.environ.get("SHELL", "sh") | |
|
64 | self._sh = pexpect.which(shell_name) | |
|
64 | 65 | if self._sh is None: |
|
65 |
raise OSError('" |
|
|
66 | ||
|
66 | raise OSError('"{}" shell not found'.format(shell_name)) | |
|
67 | ||
|
67 | 68 | return self._sh |
|
68 | 69 | |
|
69 | 70 | def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None): |
General Comments 0
You need to be logged in to leave comments.
Login now