diff options
author | Niklas Hambüchen <mail@nh2.me> | 2017-05-13 18:54:36 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-03-24 05:10:31 +0000 |
commit | 0056feaa21489910fa4ef18668602e1f0967ea6c (patch) | |
tree | 3094a6498469efbb4a12ddffe3f5c97b086dfcec /xlators/features/changelog/lib/examples/python | |
parent | aaa4e373f3c7093fa13d0882a034f35aba2761a1 (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 'xlators/features/changelog/lib/examples/python')
-rw-r--r-- | xlators/features/changelog/lib/examples/python/libgfchangelog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/changelog/lib/examples/python/libgfchangelog.py b/xlators/features/changelog/lib/examples/python/libgfchangelog.py index 10e73c02b34..2cdbf1152b9 100644 --- a/xlators/features/changelog/lib/examples/python/libgfchangelog.py +++ b/xlators/features/changelog/lib/examples/python/libgfchangelog.py @@ -1,9 +1,8 @@ import os from ctypes import * -from ctypes.util import find_library class Changes(object): - libgfc = CDLL(find_library("gfchangelog"), mode=RTLD_GLOBAL, use_errno=True) + libgfc = CDLL("libgfchangelog.so", mode=RTLD_GLOBAL, use_errno=True) @classmethod def geterrno(cls): |