diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:30:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 23:30:33 -0500 |
commit | 3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5 (patch) | |
tree | ba04d09ce9d0df114890db8e31dd6cb6988f9d7b /docs/features/embedded_python_shells.rst | |
parent | c7ac2e965d025806ce5baddfc718814e3e58d639 (diff) | |
parent | 90152df53478a00a3c64ba5ece160485408680dd (diff) | |
download | cmd2-git-3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5.tar.gz |
Merge pull request #875 from python-cmd2/doc_streamline
Doc streamline
Diffstat (limited to 'docs/features/embedded_python_shells.rst')
-rw-r--r-- | docs/features/embedded_python_shells.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/features/embedded_python_shells.rst b/docs/features/embedded_python_shells.rst index 0af2f737..68377876 100644 --- a/docs/features/embedded_python_shells.rst +++ b/docs/features/embedded_python_shells.rst @@ -5,12 +5,12 @@ The ``py`` command will run its arguments as a Python command. Entered without arguments, it enters an interactive Python session. The session can call "back" to your application through the name defined in ``self.pyscript_name`` (defaults to ``app``). This wrapper provides access to execute commands in -your cmd2 application while maintaining isolation. +your ``cmd2`` application while maintaining isolation. You may optionally enable full access to to your application by setting ``self_in_py`` to ``True``. Enabling this flag adds ``self`` to the python -session, which is a reference to your Cmd2 application. This can be useful for -debugging your application. +session, which is a reference to your ``cmd2`` application. This can be useful +for debugging your application. The ``app`` object (or your custom name) provides access to application commands through raw commands. For example, any application command call be |