summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-26 21:42:02 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-26 21:42:02 -0400
commit906feb79ba54fde2b0635c321c659922559779f3 (patch)
treedb21d73cba1b851e7e95429018b1e79cf5476efe /main.py
parent5be70a0a438c1b78153b6ede8837dfd663ae20f0 (diff)
downloadcmd2-git-906feb79ba54fde2b0635c321c659922559779f3.tar.gz
Fixed conditional.py script
Also: - Made self.locals_in_py = True for main.py and examples/python_scripting.py - This makes debugging easier in the embedded IPython shell provided by the opt-in ipy command
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index 0cd0cc1c..7aaec3a3 100755
--- a/main.py
+++ b/main.py
@@ -8,4 +8,5 @@ if __name__ == '__main__':
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
# debugging of your application via introspection on self.
app = cmd2.Cmd(use_ipython=True)
+ app.locals_in_py = True
app.cmdloop()