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 <peter.hutterer@who-t.net>
pull/209/head
Peter Hutterer 2019-08-29 08:56:36 +10:00
parent 658fe44d76
commit 90ac2c7150
1 changed files with 4 additions and 7 deletions

View File

@ -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):