Fix import for standalone player
This commit is contained in:
parent
81eb1746df
commit
0a04398849
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
|
||||||
from pygame import mixer
|
from pygame import mixer
|
||||||
from mutagen.mp3 import MP3
|
from mutagen.mp3 import MP3
|
||||||
|
|
||||||
|
from helpers.os_environment import isMacOS
|
||||||
from helpers.state_manager import StateManager
|
from helpers.state_manager import StateManager
|
||||||
from helpers.logging_manager import LoggingManager
|
from helpers.logging_manager import LoggingManager
|
||||||
|
|
||||||
|
@ -498,7 +499,7 @@ def showOutput(in_q, out_q):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if isMacOS:
|
if isMacOS():
|
||||||
multiprocessing.set_start_method("spawn", True)
|
multiprocessing.set_start_method("spawn", True)
|
||||||
|
|
||||||
in_q = multiprocessing.Queue()
|
in_q = multiprocessing.Queue()
|
||||||
|
|
Loading…
Reference in a new issue