1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

run configuration init at CLI prior to ui build

This commit is contained in:
thatmattlove 2021-12-06 17:46:48 -07:00
parent 92d112b2d1
commit bddcdcaca2

View file

@ -43,7 +43,7 @@ def _version(
def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
"""Start hyperglass"""
# Project
from hyperglass.main import run
from hyperglass.main import run, init_user_config
# Local
from .util import build_ui
@ -53,6 +53,7 @@ def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
kwargs["workers"] = workers
try:
init_user_config()
if build:
build_complete = build_ui(timeout=180)
if build_complete: