Skip to content

Commit

Permalink
multiprocessing.freeze_support() の呼び出しを追加
Browse files Browse the repository at this point in the history
Python の公式ドキュメントでは、Windows 以外では freeze_support()
の呼び出しは効果がないと記載されている。しかし、macOS Big Sur 11.2.2,
Python 3.9.1, PyInstaller 4.2 において、メインプロセスが多重に
呼び出される現象が発生し、その回避策として PyInstaller リポジトリの
Issue にて freeze_support() を呼ぶことが有効だと報告されていた。
cf. pyinstaller/pyinstaller#3957
  • Loading branch information
PickledChair committed Mar 7, 2021
1 parent f29536a commit e085578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ykl_core/scene_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import json
from copy import deepcopy
import shutil
from multiprocessing import Manager, Pool
from multiprocessing import Manager, Pool, freeze_support
freeze_support()

import wx

Expand Down

0 comments on commit e085578

Please sign in to comment.