check if nothing selected, console=false

This commit is contained in:
Amazed 2021-12-23 00:41:53 +01:00
parent 0287dca42f
commit 53935cfe1d
2 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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,