From 90ac2c7150a0a928ff07304f097ba644434f8755 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 29 Aug 2019 08:56:36 +1000 Subject: [PATCH] tools: call directly into Tuhi's main from tuhi-live This sets up the config dir, loggers, etc. for us. Fixes regressions introduced a while ago when Tuhi.run() was removed and then more obvious breakage now that we require the Config path to be set up. Fixes #206 Signed-off-by: Peter Hutterer --- tools/tuhi-live.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/tuhi-live.py b/tools/tuhi-live.py index 15c67e8..4f7182c 100755 --- a/tools/tuhi-live.py +++ b/tools/tuhi-live.py @@ -56,14 +56,11 @@ def maybe_start_tuhi(queue): sys.path.append(os.getcwd()) import tuhi.base + args = [] if verbose: - tuhi.base.logger.setLevel(logging.DEBUG) - t = tuhi.base.Tuhi() - while True: - try: - t.run() - except KeyboardInterrupt: - pass + args.append('--verbose') + + tuhi.base.main(args) def start_tuhi_server(args):