Switch from Pyro5 to rpyc

This commit is contained in:
Core447 2024-03-27 09:54:53 +01:00
parent 4637027f89
commit 59f5ea0fec
No known key found for this signature in database
GPG Key ID: 5B97C0BD62F98516
3 changed files with 3 additions and 8 deletions

View File

@ -3,4 +3,4 @@ from os.path import join, abspath, dirname
print("installing") print("installing")
toplevel = dirname(abspath(__file__)) toplevel = dirname(abspath(__file__))
create_venv(join(toplevel, ".venv"), join(toplevel, "backend", "requirements.txt")) create_venv(join(toplevel, "backend", ".venv"), join(toplevel, "backend", "requirements.txt"))

View File

@ -60,8 +60,3 @@ class Backend(BackendBase):
print("init backend") print("init backend")
backend = Backend() backend = Backend()
for t in threading.enumerate():
if t.daemon:
t.join()

View File

@ -29,7 +29,7 @@ class OBS(PluginBase):
# Launch backend # Launch backend
print("launch backend") print("launch backend")
self.launch_backend(os.path.join(self.PATH, "backend", "backend.py"), os.path.join(self.PATH, ".venv")) self.launch_backend(os.path.join(self.PATH, "backend", "backend.py"), os.path.join(self.PATH, "backend", ".venv"), open_in_terminal=True)
print("backend launched") print("backend launched")
self.lm = self.locale_manager self.lm = self.locale_manager