made it possible to select another frontend in config and load this if set; lish will stay default
This commit is contained in:
parent
9fe9f85000
commit
e5455977d9
1 changed files with 10 additions and 2 deletions
|
|
@ -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,6 +167,15 @@ def main():
|
|||
jsonrpc.daemon = True
|
||||
jsonrpc.start()
|
||||
|
||||
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue