Change multiprocessing start method for player on MacOS

This commit is contained in:
Matthew Stratford 2020-11-01 02:44:35 +00:00
parent 1a4b61293c
commit bf8e8b908e
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395

View file

@ -14,9 +14,12 @@ import os
import sys
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
from pygame import mixer
from state_manager import StateManager
from mutagen.mp3 import MP3
from state_manager import StateManager
from helpers.os_environment import isMacOS
class Player():
state = None
@ -356,7 +359,9 @@ def showOutput(in_q, out_q):
if __name__ == "__main__":
#multiprocessing.set_start_method("spawn", True)
if isMacOS:
multiprocessing.set_start_method("spawn", True)
in_q = multiprocessing.Queue()
out_q = multiprocessing.Queue()