summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-25 11:40:33 -0400
committerEric Lin <anselor@gmail.com>2018-04-25 11:40:33 -0400
commite018bbd79b2ddc0cf2538dff84baa8b2bf460ccd (patch)
tree4c35a13a67d0c1902e9d9a95be38f8da2d2f8160 /examples/python_scripting.py
parent4193ef0344359d050bbfa469cbb898a52db97622 (diff)
downloadcmd2-git-e018bbd79b2ddc0cf2538dff84baa8b2bf460ccd.tar.gz
Removed the expensive imports from cmd2/__init__.py
Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index 7e2cf345..865cf052 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -17,7 +17,7 @@ This application and the "scripts/conditional.py" script serve as an example for
import argparse
import os
-import cmd2
+from cmd2 import cmd2
class CmdLineApp(cmd2.Cmd):