From 415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 27 Jan 2020 22:49:34 -0500 Subject: Renamed locals_in_py to self_in_py This more accurately reflects what it controls --- examples/scripts/conditional.py | 2 +- examples/scripts/save_help_text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/scripts') diff --git a/examples/scripts/conditional.py b/examples/scripts/conditional.py index 2e307cb4..eb4c203e 100644 --- a/examples/scripts/conditional.py +++ b/examples/scripts/conditional.py @@ -8,7 +8,7 @@ To run it you should do the following: run_pyscript scripts/conditional.py directory_path 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. +application instance. Note: self only exists in this environment if self_in_py is True. """ import os import sys diff --git a/examples/scripts/save_help_text.py b/examples/scripts/save_help_text.py index 2d1c2c41..cc4cfcc7 100644 --- a/examples/scripts/save_help_text.py +++ b/examples/scripts/save_help_text.py @@ -60,7 +60,7 @@ def main() -> None: # Make sure we have access to self if 'self' not in globals(): - print("Re-run this script from a cmd2 application where locals_in_py is True") + print("Re-run this script from a cmd2 application where self_in_py is True") return # Make sure the user passed in an output file -- cgit v1.2.1