libextractor-python

GNU libextractor
Log | Files | Refs | README | LICENSE

commit 528d8dd9c2e2e7d533d51096064bf38490bb49b8
parent ed97731d763af70f72bf84c259a676e166661d90
Author: Nils Gillmann <gillmann@infotropique.org>
Date:   Tue, 12 Jun 2018 09:49:24 +0000

extractor.py: use ctypes find_library

Signed-off-by: Nils Gillmann <gillmann@infotropique.org>

Diffstat:
Mlibextractor/extractor.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libextractor/extractor.py b/libextractor/extractor.py @@ -33,10 +33,12 @@ file-types. libextractor is a part of the GNU project (http://www.gnu.org/). """ from ctypes import * +from ctypes.util import find_library + # fake cdll import try: # loading shared object file - libextractor = cdll.LoadLibrary('libextractor.so.3') + libextractor = cdll.LoadLibrary(find_library('libextractor.so.3')) except OSError: libextractor = cdll.extractor