Compare commits
3 commits
7ebf0b48a4
...
1a1dfc7d2a
Author | SHA1 | Date | |
---|---|---|---|
1a1dfc7d2a | |||
65d527bdfa | |||
e67b31daf8 |
4 changed files with 8 additions and 3 deletions
|
@ -217,6 +217,8 @@ class MainProcess:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ValueError(f'Failed to initalize {module_name} plugin "{plugin_name}" - {e}')
|
raise ValueError(f'Failed to initalize {module_name} plugin "{plugin_name}" - {e}')
|
||||||
|
|
||||||
|
self.bus_server.update_eventclasses()
|
||||||
|
|
||||||
# Run plugin definitions
|
# Run plugin definitions
|
||||||
with progressbar(list(config.nodes), label=f"Executing {self.config_path}") as bar:
|
with progressbar(list(config.nodes), label=f"Executing {self.config_path}") as bar:
|
||||||
for node in bar:
|
for node in bar:
|
||||||
|
|
|
@ -19,6 +19,9 @@ class WebsocketServerProcess:
|
||||||
self._send_queue = asyncio.Queue()
|
self._send_queue = asyncio.Queue()
|
||||||
self.clients = set()
|
self.clients = set()
|
||||||
|
|
||||||
|
self.update_eventclasses()
|
||||||
|
|
||||||
|
def update_eventclasses(self):
|
||||||
self._event_classes = get_subclasses(Event)
|
self._event_classes = get_subclasses(Event)
|
||||||
|
|
||||||
# Data input (external application socket -> plugin/chat pipe)
|
# Data input (external application socket -> plugin/chat pipe)
|
||||||
|
@ -45,7 +48,7 @@ class WebsocketServerProcess:
|
||||||
except websockets.exceptions.ConnectionClosedError:
|
except websockets.exceptions.ConnectionClosedError:
|
||||||
pass
|
pass
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
ws.close()
|
await ws.close()
|
||||||
finally:
|
finally:
|
||||||
self.clients.discard(ws)
|
self.clients.discard(ws)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import pickle
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import maya
|
import maya
|
||||||
from httpx.exceptions import HTTPError
|
from httpx import HTTPError
|
||||||
from owoify.owoify import owoify, Owoness
|
from owoify.owoify import owoify, Owoness
|
||||||
|
|
||||||
from ovtk_audiencekit.core import PluginBase
|
from ovtk_audiencekit.core import PluginBase
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from argparse import ArgumentError
|
from argparse import ArgumentError
|
||||||
|
|
||||||
from httpx.exceptions import HTTPError
|
from httpx import HTTPError
|
||||||
|
|
||||||
from ovtk_audiencekit.core import PluginBase
|
from ovtk_audiencekit.core import PluginBase
|
||||||
from ovtk_audiencekit.plugins.builtins.Command import Command, CommandTypes
|
from ovtk_audiencekit.plugins.builtins.Command import Command, CommandTypes
|
||||||
|
|
Loading…
Add table
Reference in a new issue