Skip to content

Commit

Permalink
Add call to freeze_support.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Jan 17, 2020
1 parent 5988d86 commit f322880
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Newer revisions of python-mpv require mpv-1.dll in the PATH.
import os
import sys
import multiprocessing
if sys.platform.startswith("win32") or sys.platform.startswith("cygwin"):
# Detect if bundled via pyinstaller.
# From: https://stackoverflow.com/questions/404744/
Expand All @@ -14,4 +15,7 @@

from jellyfin_mpv_shim.mpv_shim import main
if __name__ == '__main__':
# https://stackoverflow.com/questions/24944558/pyinstaller-built-windows-exe-fails-with-multiprocessing
multiprocessing.freeze_support()

main()

0 comments on commit f322880

Please sign in to comment.