MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

examples/python_scripting.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 """Example cmd2 application to showcase conditional control flow in Python scripting within cmd2 apps."""
35
36 def __init__(self) -> None:
37 # Set include_ipy to True to enable the "ipy" command which runs an interactive IPython shell
38 super().__init__(include_ipy=True)
39 self._set_prompt()
40 self.intro = "Happy 𝛑 Day. Note the full Unicode support: 😇 💩"
41
42 def _set_prompt(self) -> None:
43 """Set prompt so it displays the current working directory."""

Callers

nothing calls this directly

Calls 1

_set_promptMethod · 0.95

Tested by

no test coverage detected