Add special case for loading windows DLL in python
bindings.
This commit is contained in:
parent
8019032d3d
commit
7b3cf9df36
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue