summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/examples/python/libgfchangelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/examples/python/libgfchangelog.py')
-rw-r--r--xlators/features/changelog/lib/examples/python/libgfchangelog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/changelog/lib/examples/python/libgfchangelog.py b/xlators/features/changelog/lib/examples/python/libgfchangelog.py
index 2cdbf1152b9..2da9f2d2a8c 100644
--- a/xlators/features/changelog/lib/examples/python/libgfchangelog.py
+++ b/xlators/features/changelog/lib/examples/python/libgfchangelog.py
@@ -1,8 +1,10 @@
import os
from ctypes import *
+from ctypes.util import find_library
class Changes(object):
- libgfc = CDLL("libgfchangelog.so", mode=RTLD_GLOBAL, use_errno=True)
+ libgfc = CDLL(find_library("gfchangelog"), mode=RTLD_GLOBAL,
+ use_errno=True)
@classmethod
def geterrno(cls):