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>
This commit is contained in:
parent
658fe44d76
commit
90ac2c7150
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue