fix(bridge): load bundled Windows libraries only on Windows
This commit is contained in:
1 parent
02a5fa2080
commit
e6cd197a2e
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user