rscada / python-mbus

Python wrapper for libmbus
BSD 3-Clause "New" or "Revised" License
25 stars 28 forks source link

Autodetect location of shared library #12

Closed sjlongland closed 8 years ago

sjlongland commented 8 years ago

Presently, if the user does not specify the library path, it is assumed to be in /usr/local/lib, which is wrong unless you install from source.

I don't think it right that we should have to know where to find this library, so instead, use find_library in ctypes.util to locate it automatically.

sjlongland commented 8 years ago

This should resolve https://github.com/rscada/python-mbus/issues/7

rscada commented 8 years ago

Thanks! And sorry for taking so long to get to review this.