diff --git a/__install__.py b/__install__.py index 957c4b5..35bd372 100644 --- a/__install__.py +++ b/__install__.py @@ -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")) \ No newline at end of file +create_venv(join(toplevel, "backend", ".venv"), join(toplevel, "backend", "requirements.txt")) \ No newline at end of file diff --git a/backend/backend.py b/backend/backend.py index 8fc9c48..8507f1b 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -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() \ No newline at end of file +backend = Backend() \ No newline at end of file diff --git a/main.py b/main.py index 1587e72..79bc430 100644 --- a/main.py +++ b/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