-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move freeze support to very top level.
From now on, to start the GUI from `PyCharm` run the `release/src/runPytrnsysGui.py` script.
- Loading branch information
1 parent
0990ec7
commit 75c099a
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import multiprocessing as _mp | ||
|
||
import trnsysGUI.gui as _gui | ||
|
||
_gui.main() | ||
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() | ||
|
||
_gui.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters