Commit 3eaf7009 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix loading of libgv in certain environments

This resolves ticket #100
parent 2301bff2
......@@ -52,7 +52,7 @@ try:
libname = ctypes.util.find_library("gvc")
if libname is None:
raise OSError()
libgv = ctypes.CDLL(libname)
libgv = ctypes.CDLL(libname, ctypes.RTLD_GLOBAL)
# properly set the return types of certain functions
ptype = ctypes.POINTER(ctypes.c_char)
libgv.gvContext.restype = ptype
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment