summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-03 00:34:36 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-03 00:34:36 -0400
commitc051c84fd44dda4b0c19f6ad01bb14ea970de260 (patch)
treef4a72643456187123d516c1c2f7e3e99e37672b3
parent09a10decf5ae10a1f4c0401fa507ceee6db720d3 (diff)
downloadcmd2-git-c051c84fd44dda4b0c19f6ad01bb14ea970de260.tar.gz
Fixed import in main.py so this can be used for debug and test during development
-rwxr-xr-xmain.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.py b/main.py
index 9e340600..0cd0cc1c 100755
--- a/main.py
+++ b/main.py
@@ -1,12 +1,11 @@
#!/usr/bin/env python
# coding=utf-8
-
-from cmd2 import Cmd
+from cmd2 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 = Cmd(use_ipython=True)
+ app = cmd2.Cmd(use_ipython=True)
app.cmdloop()