Skip to content

Commit

Permalink
Call freeze_support on startup. Fixes #365
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Mar 17, 2022
1 parent be55d84 commit 9b29c7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2636,6 +2636,8 @@ def main(argv):
elif sys.version_info[1] >= 7:
sys.stdout.reconfigure(encoding='utf-8', errors='backslashreplace')
sys.stdin.reconfigure(encoding='utf-8', errors='backslashreplace')
if sys.platform.startswith('win'):
multiprocessing.freeze_support()
try:
main(sys.argv[1:])
except MemoryError:
Expand Down

0 comments on commit 9b29c7c

Please sign in to comment.