Skip to content

Commit

Permalink
Enable multiprocessing support for PyInstaller.
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckerruebe committed Aug 10, 2023
1 parent e9ba4af commit 8dcc55a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trnsysGUI/gui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging as _log
import multiprocessing as _mp
import pathlib as _pl
import sys as _sys

Expand Down Expand Up @@ -83,4 +84,9 @@ def exceptionHook(exceptionType, value, traceback):


if __name__ == "__main__":
# Support freezing using PyInstaller, see
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Multiprocessing and
# https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support
_mp.freeze_support()

main()

0 comments on commit 8dcc55a

Please sign in to comment.