Skip to content

Commit

Permalink
this exists lol
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Nov 30, 2024
1 parent a70d177 commit 26385f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions worlds/LauncherComponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 26385f0

Please sign in to comment.