diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-02-06 20:18:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-06 20:18:26 -0500 |
commit | 911d9651dd5370f4432b45ba1e481309d01178d5 (patch) | |
tree | bb6b61e6b3e0faae41e66be167d7ca7e6dc79734 /examples/scripts/conditional.py | |
parent | 7d93134ff806a1adb2af55343dc69dcddb4c110c (diff) | |
parent | 555f023c6a494a867d75959276c8a4c0746f2fbb (diff) | |
download | cmd2-git-911d9651dd5370f4432b45ba1e481309d01178d5.tar.gz |
Merge pull request #623 from python-cmd2/pyscript_quit
Fixed issue where calling exit() or quit() from a pyscript would close the whole console
Diffstat (limited to 'examples/scripts/conditional.py')
-rw-r--r-- | examples/scripts/conditional.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scripts/conditional.py b/examples/scripts/conditional.py index faac3947..8a4f14de 100644 --- a/examples/scripts/conditional.py +++ b/examples/scripts/conditional.py @@ -7,8 +7,8 @@ To run it you should do the following: ./python_scripting.py pyscript scripts/conditional.py directory_path -Note: The "cmd" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2 -application instance. +Note: The "app" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2 +application instance. Note: self only exists in this environment if locals_in_py is True. """ import os import sys |