MCPcopy Create free account
hub / github.com/ipython/ipython / sh

Method sh

IPython/utils/_process_posix.py:61–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59
60 @property
61 def sh(self):
62 if self._sh is None:
63 shell_name = os.environ.get("SHELL", "sh")
64 self._sh = pexpect.which(shell_name)
65 if self._sh is None:
66 raise OSError('"{}" shell not found'.format(shell_name))
67
68 return self._sh
69
70 def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None):
71 """Arguments are used for pexpect calls."""

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected