-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexe_entry.py
24 lines (17 loc) · 1.09 KB
/
exe_entry.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
# build omega_model package:
pyinstaller exe_entry.py --name omega2 --paths omega_model --add-data omega_model/test_inputs;omega_model/test_inputs --noconfirm
# WINDOWS build omega_gui package:
pyinstaller exe_entry.py --name omega2 --paths omega_model;omega_gui --add-data omega_model;omega_model --add-data omega_gui;omega_gui --noconfirm --onefile
pyinstaller exe_entry.py --name omega2 --paths omega_model;omega_gui --add-data omega_model;omega_model --add-data omega_gui;omega_gui --noconfirm
# *NIX build omega_gui package:
pyinstaller exe_entry.py --name omega2 --paths omega_model:omega_gui --add-data omega_model:omega_model --add-data omega_gui:omega_gui --noconfirm --onefile
pyinstaller exe_entry.py --name omega2 --paths omega_model:omega_gui --add-data omega_model:omega_model --add-data omega_gui:omega_gui --noconfirm
"""
import multiprocessing
# import omega_model
import omega_gui.omega_gui
# fix for for pyinstaller multiprocessing issue
multiprocessing.freeze_support()
# omega_model.run_omega(omega_model.OMEGASessionSettings(), standalone_run=True)
omega_gui.omega_gui.run_gui()