improved dll/so load function to use PATH env variable
This pull request adds support for the module to search and load the HID dll/so file from the PATH environment variable.
The ctypes docs specifically recommend against using find_library for this purpose.
If wrapping a shared library with ctypes, it may be better to determine the shared library name at development time, and hardcode that into the wrapper module instead of using find_library() to locate the library at runtime.
It's behavior varies pretty wildly between systems, and at minimum you'd need to drop prefixes/extensions for Linux systems.
What is the actual concrete problem with reproducible steps you're trying to solve here?
cdll.LoadLibrary should already be respecting PATH