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/event_loops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/event_loops.py') diff --git a/examples/event_loops.py b/examples/event_loops.py index 53d3ca2b..a76c5d91 100755 --- a/examples/event_loops.py +++ b/examples/event_loops.py @@ -6,7 +6,7 @@ This is an example of how to use cmd2 in a way so that cmd2 doesn't own the inne This opens up the possibility of registering cmd2 input with event loops, like asyncio, without occupying the main loop. """ -import cmd2 +from cmd2 import cmd2 class Cmd2EventBased(cmd2.Cmd): -- cgit v1.2.1