diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-05-27 11:42:31 -0400 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-05-27 11:42:31 -0400 |
| commit | 8acfe9b476560249207c3feccec0c20e4eaa2e5d (patch) | |
| tree | 642d06da6fe2269bddce45671f24feb820330f7f | |
| parent | 7d944a2752e92f22bad207cb695624608315444e (diff) | |
| download | cmd2-git-8acfe9b476560249207c3feccec0c20e4eaa2e5d.tar.gz | |
Adding main.py to python2 branch for manual testing with ipy enabled
| -rwxr-xr-x | main.py | 12 |
1 files changed, 12 insertions, 0 deletions
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() |
