Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
3eaf7009
Commit
3eaf7009
authored
Apr 30, 2012
by
Tiago Peixoto
Browse files
Fix loading of libgv in certain environments
This resolves ticket #100
parent
2301bff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/graphviz_draw.py
View file @
3eaf7009
...
...
@@ -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
...
...
Tiago Peixoto
@count0
mentioned in issue
#84 (closed)
·
Aug 06, 2014
mentioned in issue
#84 (closed)
mentioned in issue #84
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment