diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:40:18 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:40:18 -0500 |
commit | 138c28d18cee56ae09416cc00d2d461e983d90e8 (patch) | |
tree | 81a8935b7a2b8ea1c7ba429a3bde25db9c33deee /docs/features/embedded_python_shells.rst | |
parent | 8563795fee9a8b865c7e67cc0fd19dc4c5593e13 (diff) | |
parent | 3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5 (diff) | |
download | cmd2-git-138c28d18cee56ae09416cc00d2d461e983d90e8.tar.gz |
Merge branch 'master' into color_autocomplete
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 |