Improve handling of console window in windowed apps

Suppresses console window flicker for PyInstaller windowed applications by redirecting stdout and stderr in main.py. Updates logging setup to avoid console output in windowed mode and adds fallback error logging. Suppresses pkg_resources deprecation warnings to further reduce unwanted console output.
This commit is contained in:
Your Name
2025-08-27 22:17:13 +03:00
parent 4779ab269f
commit a6a175b3d7
3 changed files with 35 additions and 19 deletions
+4
View File
@@ -4,8 +4,12 @@ import subprocess
import sys
import tempfile
import time
import warnings
from pathlib import Path
# Suppress the pkg_resources deprecation warning to prevent console window flicker
warnings.filterwarnings("ignore", message=".*pkg_resources is deprecated.*", category=UserWarning)
import pkg_resources
import requests
from packaging import version