Skip to content

Commit 8acfe9b

Browse files
committed
Adding main.py to python2 branch for manual testing with ipy enabled
1 parent 7d944a2 commit 8acfe9b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
import cmd2
4+
5+
if __name__ == '__main__':
6+
# If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality.
7+
8+
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
9+
# debugging of your application via introspection on self.
10+
app = cmd2.Cmd(use_ipython=True)
11+
app.locals_in_py = True
12+
app.cmdloop()

0 commit comments

Comments
 (0)