Switch from Pyro5 to rpyc
This commit is contained in:
parent
4637027f89
commit
59f5ea0fec
|
@ -3,4 +3,4 @@ from os.path import join, abspath, dirname
|
|||
|
||||
print("installing")
|
||||
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"))
|
|
@ -59,9 +59,4 @@ class Backend(BackendBase):
|
|||
self.OBSController.switch_to_scene(scene)
|
||||
|
||||
print("init backend")
|
||||
backend = Backend()
|
||||
|
||||
|
||||
for t in threading.enumerate():
|
||||
if t.daemon:
|
||||
t.join()
|
||||
backend = Backend()
|
2
main.py
2
main.py
|
@ -29,7 +29,7 @@ class OBS(PluginBase):
|
|||
|
||||
# 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")
|
||||
|
||||
self.lm = self.locale_manager
|
||||
|
|
Loading…
Reference in New Issue