From 26385f099ef4fd8dd9d663eb0ef954b592b05f5b Mon Sep 17 00:00:00 2001 From: qwint Date: Sat, 30 Nov 2024 00:26:27 -0600 Subject: [PATCH] this exists lol --- worlds/LauncherComponents.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worlds/LauncherComponents.py b/worlds/LauncherComponents.py index 9e517a5a1e91..aedf383030ae 100644 --- a/worlds/LauncherComponents.py +++ b/worlds/LauncherComponents.py @@ -62,15 +62,15 @@ def __repr__(self): def launch_subprocess(func: Callable, name: str = None, args: Tuple[str, ...] = ()) -> None: - import sys - if "kivy" not in sys.modules: - func(*args) - else: + from Utils import is_kivy_running + if is_kivy_running(): global processes import multiprocessing process = multiprocessing.Process(target=func, name=name, args=args) process.start() processes.add(process) + else: + func(*args) class SuffixIdentifier: