Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
20 lines
634 B
Diff
20 lines
634 B
Diff
diff --git a/bindings/python/iio.py b/bindings/python/iio.py
|
|
index b91260cc..04bcfa7f 100644
|
|
--- a/bindings/python/iio.py
|
|
+++ b/bindings/python/iio.py
|
|
@@ -218,13 +218,7 @@ _ChannelPtr = _POINTER(_Channel)
|
|
_BufferPtr = _POINTER(_Buffer)
|
|
_DataFormatPtr = _POINTER(DataFormat)
|
|
|
|
-if "Windows" in _system():
|
|
- _iiolib = "libiio.dll"
|
|
-else:
|
|
- # Non-windows, possibly Posix system
|
|
- _iiolib = "iio"
|
|
-
|
|
-_lib = _cdll(find_library(_iiolib), use_errno=True, use_last_error=True)
|
|
+_lib = _cdll("@libiio@", use_errno=True, use_last_error=True)
|
|
|
|
_get_backends_count = _lib.iio_get_backends_count
|
|
_get_backends_count.restype = c_uint
|