Merge pull request #227 from Chelebii/fix/windows-bird-x-runtime

fix(windows): stabilize bundled Bird X search
This commit is contained in:
Matt Van Horn
2026-04-13 22:15:21 -04:00
committed by GitHub
4 changed files with 126 additions and 102 deletions
+5
View File
@@ -33,6 +33,11 @@ def ensure_supported_python(version_info: tuple[int, int, int] | object | None =
ensure_supported_python()
if os.name == "nt":
for stream in (sys.stdout, sys.stderr):
if hasattr(stream, "reconfigure"):
stream.reconfigure(encoding="utf-8", errors="replace")
SCRIPT_DIR = Path(__file__).parent.resolve()
sys.path.insert(0, str(SCRIPT_DIR))