summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2017-05-13 18:54:36 +0200
committerAmar Tumballi <amarts@redhat.com>2018-03-24 05:10:31 +0000
commit0056feaa21489910fa4ef18668602e1f0967ea6c (patch)
tree3094a6498469efbb4a12ddffe3f5c97b086dfcec /tools/glusterfind
parentaaa4e373f3c7093fa13d0882a034f35aba2761a1 (diff)
python: Remove all uses of find_library. Fixes #1450593
`find_library()` doesn't consider LD_LIBRARY_PATH on Python < 3.6. Change-Id: Iee26085cb5d14061001f19f032c2664d69a378a8 BUG: 1450593 Signed-off-by: Niklas Hambüchen <mail@nh2.me>
Diffstat (limited to 'tools/glusterfind')
-rw-r--r--tools/glusterfind/src/libgfchangelog.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/glusterfind/src/libgfchangelog.py b/tools/glusterfind/src/libgfchangelog.py
index b7d8efcb4e4..afb3387db2d 100644
--- a/tools/glusterfind/src/libgfchangelog.py
+++ b/tools/glusterfind/src/libgfchangelog.py
@@ -11,14 +11,13 @@
import os
from ctypes import CDLL, get_errno, create_string_buffer, c_ulong, byref
from ctypes import RTLD_GLOBAL
-from ctypes.util import find_library
class ChangelogException(OSError):
pass
-libgfc = CDLL(find_library("gfchangelog"), use_errno=True, mode=RTLD_GLOBAL)
+libgfc = CDLL("libgfchangelog.so", use_errno=True, mode=RTLD_GLOBAL)
def raise_oserr(prefix=None):