Skip to content

Commit f487b2c

Browse files
committed
load library before headers
1 parent d358591 commit f487b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ogdf_python/loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
cppyy.cppdef("#undef NDEBUG")
5151
cppyy.cppdef("#define OGDF_INSTALL")
5252
try:
53+
cppyy.load_library("OGDF")
54+
5355
cppyy.include("ogdf/basic/internal/config_autogen.h")
5456
cppyy.include("ogdf/basic/internal/config.h")
5557
cppyy.include("ogdf/basic/Graph.h")
@@ -59,8 +61,6 @@
5961
pass # gone in newer versions
6062
cppyy.include("ogdf/fileformats/GraphIO.h")
6163
cppyy.include("ogdf/basic/LayoutStandards.h")
62-
63-
cppyy.load_library("OGDF")
6464
except:
6565
print( # TODO check if the issue is really that the file couldn't be found
6666
"ogdf-python couldn't load OGDF. "

0 commit comments

Comments
 (0)