Skip to content

Commit

Permalink
Merge pull request #70 from BenVlodgi/dev
Browse files Browse the repository at this point in the history
PR 6.5 - fix multiprocessing with frozen executables
  • Loading branch information
TeamSpen210 committed Jul 6, 2015
2 parents 8743199 + d6e4233 commit 86e1ce0
Showing 1 changed file with 11 additions and 1 deletion.
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

0 comments on commit 86e1ce0

Please sign in to comment.