Skip to content

Commit c051c84

Browse files
committed
Fixed import in main.py so this can be used for debug and test during development
1 parent 09a10de commit c051c84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3-
4-
from cmd2 import Cmd
3+
from cmd2 import cmd2
54

65
if __name__ == '__main__':
76
# If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality.
87

98
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
109
# debugging of your application via introspection on self.
11-
app = Cmd(use_ipython=True)
10+
app = cmd2.Cmd(use_ipython=True)
1211
app.cmdloop()

0 commit comments

Comments
 (0)