check if nothing selected, console=false
This commit is contained in:
parent
0287dca42f
commit
53935cfe1d
2
main.py
2
main.py
@ -133,6 +133,8 @@ def read_configuration():
|
|||||||
if not os.path.exists(config_file):
|
if not os.path.exists(config_file):
|
||||||
# create it
|
# create it
|
||||||
giants_exe_path, _filename = QFileDialog.getOpenFileName(None, caption="Open Giants.exe", filter="Giants.exe")
|
giants_exe_path, _filename = QFileDialog.getOpenFileName(None, caption="Open Giants.exe", filter="Giants.exe")
|
||||||
|
if not giants_exe_path:
|
||||||
|
sys.exit(1)
|
||||||
giants_dir = os.path.dirname(giants_exe_path)
|
giants_dir = os.path.dirname(giants_exe_path)
|
||||||
CONFIG = {"giants_directory": giants_dir, "automatic_download": True}
|
CONFIG = {"giants_directory": giants_dir, "automatic_download": True}
|
||||||
save_configuration()
|
save_configuration()
|
||||||
|
@ -33,7 +33,7 @@ exe = EXE(pyz,
|
|||||||
upx=True,
|
upx=True,
|
||||||
upx_exclude=[],
|
upx_exclude=[],
|
||||||
runtime_tmpdir=None,
|
runtime_tmpdir=None,
|
||||||
console=True,
|
console=False,
|
||||||
disable_windowed_traceback=False,
|
disable_windowed_traceback=False,
|
||||||
target_arch=None,
|
target_arch=None,
|
||||||
codesign_identity=None,
|
codesign_identity=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user