forked from mirrors/thatmattlove-hyperglass
run configuration init at CLI prior to ui build
This commit is contained in:
parent
92d112b2d1
commit
bddcdcaca2
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue