From e018bbd79b2ddc0cf2538dff84baa8b2bf460ccd Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 25 Apr 2018 11:40:33 -0400 Subject: 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 --- examples/arg_print.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/arg_print.py') diff --git a/examples/arg_print.py b/examples/arg_print.py index 18fa483f..90df053a 100755 --- a/examples/arg_print.py +++ b/examples/arg_print.py @@ -11,10 +11,8 @@ It also serves as an example of how to create command aliases (shortcuts). """ import argparse -import cmd2 -import pyparsing - -from cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args +from cmd2 import cmd2 +from cmd2.cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args class ArgumentAndOptionPrinter(cmd2.Cmd): -- cgit v1.2.1