From 7dc0bd4932b6231c9e4fbfad8eeb2bb293e37989 Mon Sep 17 00:00:00 2001 From: Ircama Date: Tue, 30 Jul 2024 08:26:45 +0200 Subject: [PATCH] Use hide_console='hide-early' Windows only. In console-enabled executable, hide or minimize the console window if the program owns the console window (i.e., was not launched from existing console window). Depending on the setting, the console is hidden/mininized either early in the bootloader execution ('hide-early', 'minimize-early') or late in the bootloader execution ('hide-late', 'minimize-late'). The early option takes place as soon as the PKG archive is found. In onefile builds, the late option takes place after application has unpacked itself and before it launches the child process. In onedir builds, the late option takes place before starting the embedded python interpreter. https://github.com/pyinstaller/pyinstaller/blob/790d43f31cde74f3544ecf59f4c4d2035b2d5317/PyInstaller/building/api.py#L386 --- epson_print_conf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epson_print_conf.spec b/epson_print_conf.spec index 438bcd8..6db50b0 100644 --- a/epson_print_conf.spec +++ b/epson_print_conf.spec @@ -44,7 +44,7 @@ exe = EXE( runtime_tmpdir=None, # console=False, # On Windows or Mac OS governs whether to use the console executable or the windowed executable. Always True on Linux/Unix (always console executable - it does not matter there). disable_windowed_traceback=False, # Disable traceback dump of unhandled exception in windowed (noconsole) mode (Windows and macOS only) - hide_console='hide-early'. # Windows only. In console-enabled executable, hide or minimize the console window ('hide-early', 'minimize-early', 'hide-late', 'minimize-late') + hide_console='hide-early', # Windows only. In console-enabled executable, hide or minimize the console window ('hide-early', 'minimize-early', 'hide-late', 'minimize-late') argv_emulation=False, target_arch=None, codesign_identity=None,