gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libextractor-python] branch master updated: extractor.py:


From: gnunet
Subject: [GNUnet-SVN] [libextractor-python] branch master updated: extractor.py: use ctypes find_library
Date: Tue, 12 Jun 2018 11:48:56 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libextractor-python.

The following commit(s) were added to refs/heads/master by this push:
     new 528d8dd  extractor.py: use ctypes find_library
528d8dd is described below

commit 528d8dd9c2e2e7d533d51096064bf38490bb49b8
Author: Nils Gillmann <address@hidden>
AuthorDate: Tue Jun 12 09:49:24 2018 +0000

    extractor.py: use ctypes find_library
    
    Signed-off-by: Nils Gillmann <address@hidden>
---
 libextractor/extractor.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libextractor/extractor.py b/libextractor/extractor.py
index 7b24578..b4ba3d9 100644
--- 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
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]