mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
Add directives to global state
This commit is contained in:
@@ -21,6 +21,7 @@ from .plugins import (
|
||||
)
|
||||
from .constants import MIN_NODE_VERSION, MIN_PYTHON_VERSION, __version__
|
||||
from .util.frontend import get_node_version
|
||||
from .defaults.directives import register_builtin_directives
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
# Local
|
||||
@@ -88,6 +89,8 @@ def on_starting(server: "Arbiter"):
|
||||
|
||||
state = use_state()
|
||||
|
||||
register_builtin_directives()
|
||||
|
||||
register_all_plugins(state.devices)
|
||||
|
||||
asyncio.run(build_ui())
|
||||
|
||||
Reference in New Issue
Block a user