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"))
|
|
@ -60,8 +60,3 @@ class Backend(BackendBase):
|
|||
|
||||
print("init backend")
|
||||
backend = Backend()
|
||||
|
||||
|
||||
for t in threading.enumerate():
|
||||
if t.daemon:
|
||||
t.join()
|
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