1
0
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:
thatmattlove
2021-09-17 09:04:59 -07:00
parent 9a57e4a728
commit 7adb6ae0ec
9 changed files with 236 additions and 11 deletions

View File

@@ -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())