From 8acfe9b476560249207c3feccec0c20e4eaa2e5d Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 27 May 2018 11:42:31 -0400 Subject: Adding main.py to python2 branch for manual testing with ipy enabled --- main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 main.py diff --git a/main.py b/main.py new file mode 100755 index 00000000..e19bddca --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# coding=utf-8 +import cmd2 + +if __name__ == '__main__': + # If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality. + + # 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() -- cgit v1.2.1