From 60678be99f1eb73da350127fc1a42f880a303ab5 Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Mon, 17 Oct 2016 10:43:11 -0400 Subject: [PATCH] move the console, just to make it consistent with the other applications --- modpypes/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modpypes/client.py b/modpypes/client.py index 6b4e3f4..7f4ceb7 100644 --- a/modpypes/client.py +++ b/modpypes/client.py @@ -295,12 +295,13 @@ def main(): this_controller = SieveClientController() if _debug: _log.debug(" - this_controller: %r", this_controller) - this_console = ConsoleClient(this_controller) - if _debug: _log.debug(" - this_console: %r", this_console) - # local IO functions bind(this_controller, ModbusClient()) + # if this is being run, then a console is handy + this_console = ConsoleClient(this_controller) + if _debug: _log.debug(" - this_console: %r", this_console) + _log.debug("running") run()