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:
|
def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
|
||||||
"""Start hyperglass"""
|
"""Start hyperglass"""
|
||||||
# Project
|
# Project
|
||||||
from hyperglass.main import run
|
from hyperglass.main import run, init_user_config
|
||||||
|
|
||||||
# Local
|
# Local
|
||||||
from .util import build_ui
|
from .util import build_ui
|
||||||
|
|
@ -53,6 +53,7 @@ def _start(build: bool = False, workers: t.Optional[int] = None) -> None:
|
||||||
kwargs["workers"] = workers
|
kwargs["workers"] = workers
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
init_user_config()
|
||||||
if build:
|
if build:
|
||||||
build_complete = build_ui(timeout=180)
|
build_complete = build_ui(timeout=180)
|
||||||
if build_complete:
|
if build_complete:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue