From e5455977d959f71ec81f18ac07eb61112e634dbc Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Fri, 29 Nov 2013 01:15:50 +0100 Subject: [PATCH] made it possible to select another frontend in config and load this if set; lish will stay default --- bin/linspector | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/linspector b/bin/linspector index 3894340..a1abad4 100755 --- a/bin/linspector +++ b/bin/linspector @@ -35,7 +35,6 @@ from linspector.config.parser import FullConfigParser from linspector.core.interface import LinspectorInterface from linspector.core.job import Job from linspector.core.scheduler import Scheduler -from linspector.frontends.lish import LishFrontend from linspector.tasks.task import TaskExecutor logger = logging.getLogger(__name__) @@ -168,7 +167,16 @@ def main(): jsonrpc.daemon = True jsonrpc.start() - LishFrontend(interface) + frontend = None + if "frontend" in core and core["frontend"]: + frontend = core["frontend"] + + if frontend == "clish": + from linspector.frontends.clish import ClishFrontend + ClishFrontend(interface) + else: + from linspector.frontends.lish import LishFrontend + LishFrontend(interface) logger.debug("shutting down scheduler")