Add special case for loading windows DLL in python

bindings.
This commit is contained in:
Gregory R. Warnes 2022-01-05 12:41:42 -05:00 • committed by Robert Ghilduta
commit 7b3cf9df36

View file

@ -32,7 +32,9 @@ ffi = cffi.FFI()
ffi.cdef(header)
if platform == "darwin":
if platform == "win32":
libbladeRF = ffi.dlopen("bladerf.dll")
elif platform == "darwin":
libbladeRF = ffi.dlopen("libbladeRF.dylib")
else:
libbladeRF = ffi.dlopen("libbladeRF.so")