picosdk-python-wrappers icon indicating copy to clipboard operation
picosdk-python-wrappers copied to clipboard

Fix library load on Linux: try lower-case library name

Open trybik opened this issue 4 years ago • 0 comments

Fixes issue when loading "usbPt104" library which on Linux is effectively /opt/picoscope/lib/libusbpt104.so.2; ctypes.util .find_library("usbPt104") returns None, whereas ctypes.util .find_library("usbpt104") works.

Changes proposed in this pull request:

  • after unsuccessful library load attempt simply try again but with a lower-case name

trybik avatar May 31 '21 12:05 trybik