##// END OF EJS Templates
Merge pull request #12361 from meeseeksmachine/auto-backport-of-pr-12360-on-7.x...
Matthias Bussonnier -
r25799:1ea8230d merge
parent child Browse files
Show More
@@ -60,9 +60,10 b' class ProcessHandler(object):'
60 @property
60 @property
61 def sh(self):
61 def sh(self):
62 if self._sh is None:
62 if self._sh is None:
63 self._sh = pexpect.which('sh')
63 shell_name = os.environ.get("SHELL", "sh")
64 self._sh = pexpect.which(shell_name)
64 if self._sh is None:
65 if self._sh is None:
65 raise OSError('"sh" shell not found')
66 raise OSError('"{}" shell not found'.format(shell_name))
66
67
67 return self._sh
68 return self._sh
68
69
General Comments 0
You need to be logged in to leave comments. Login now