We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973b8f6 commit 92d82d1Copy full SHA for 92d82d1
Lib/multiprocessing/context.py
@@ -145,7 +145,7 @@ def freeze_support(self):
145
'''Check whether this is a fake forked process in a frozen executable.
146
If so then run code specified by commandline and exit.
147
'''
148
- if sys.platform == 'win32' and getattr(sys, 'frozen', False):
+ if self.get_start_method() == 'spawn' and getattr(sys, 'frozen', False):
149
from .spawn import freeze_support
150
freeze_support()
151
0 commit comments