From dc6590f39395aa479d3ea1f445b1fc960e264e71 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 6 Feb 2019 03:55:19 -0500 Subject: Fixed issue where calling exit() or quit() from a pyscript would close the whole console --- examples/scripts/conditional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/scripts/conditional.py') 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 -- cgit v1.2.1