fix(bridge): load bundled Windows libraries only on Windows

This commit is contained in:
yilsem committed 2026-10-11 16:59:08 +03:00
1 parent 02a5fa2080
commit e6cd197a2e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ LOGDIR = os.path.join(HOME, "log")
# Codex istek govdesini zstd ile sikistirir. Model adini okumak icin bir KOPYASI acilir; giden govde degismez.
_VENDOR = os.path.join(HERE, "vendor", "cp%d%d-win_amd64" % sys.version_info[:2])
if os.path.isdir(_VENDOR):
if os.name == "nt" and os.path.isdir(_VENDOR):
sys.path.insert(0, _VENDOR)
+1 -1
View File
@@ -43,7 +43,7 @@ except OSError:
# Codex sends request bodies zstd-compressed. Python gained zstd in 3.14; for older
# interpreters the matching `zstandard` build ships next to this file.
_VENDOR = os.path.join(HERE, "vendor", "cp%d%d-win_amd64" % sys.version_info[:2])
if os.path.isdir(_VENDOR):
if os.name == "nt" and os.path.isdir(_VENDOR):
sys.path.insert(0, _VENDOR)