Skip to content

Commit

Permalink
Merge pull request #1632 from heinezen/fix/macos_freeze_support
Browse files Browse the repository at this point in the history
Add freeze_support() before using multiprocessing
  • Loading branch information
TheJJ authored Apr 3, 2024
2 parents 666844d + 1f3ef07 commit 3ddf3a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openage/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ def main(argv=None):


if __name__ == '__main__':
# Required for Windows executables (and apparently macOS too)
# https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support
# https://pyinstaller.org/en/latest/common-issues-and-pitfalls.html#multi-processing
multiprocessing.freeze_support()

# openage is complicated and multithreaded; better not use fork.
multiprocessing.set_start_method('spawn')

Expand Down

0 comments on commit 3ddf3a3

Please sign in to comment.