Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 6.5 - fix multiprocessing with frozen executables #70

Merged
merged 1 commit into from
Jul 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/BEE2.pyw
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Fix a bug with multiprocessing, where it tries to flush stdout
import sys, io
if sys.stdout is None:
sys.stdout = io.StringIO()
if sys.stderr is None:
sys.stderr = io.StringIO()

from multiprocessing import freeze_support

if __name__ == '__main__':
freeze_support() # Make multiprocessing work correctly when frozen

from tkinter import messagebox

import traceback
Expand All @@ -13,7 +24,6 @@ if __name__ == '__main__':
import packageLoader
import gameMan
import extract_packages

ERR_FORMAT = '''
--------------

Expand Down