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

Method in_pyscript

cmd2/cmd2.py:2677–2679  ·  view source on GitHub ↗

Return whether running inside a Python shell or pyscript.

(self)

Source from the content-addressed store, hash-verified

2675 return self._current_script_dir is not None
2676
2677 def in_pyscript(self) -> bool:
2678 """Return whether running inside a Python shell or pyscript."""
2679 return self._in_py
2680
2681 @property
2682 def aliases(self) -> dict[str, str]:

Callers 3

ppagedMethod · 0.95
_run_pythonMethod · 0.95
do_ipyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected