Skip to content
Snippets Groups Projects
Commit d84a8c86 authored by florent's avatar florent
Browse files

Set flags of dynamic loader so that symbols are global.

    * src/dynamic_graph/__init__.py.
parent 0946fe16
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,15 @@ Copyright (c) 2010 CNRS ...@@ -3,7 +3,15 @@ Copyright (c) 2010 CNRS
Author: Florent Lamiraux Author: Florent Lamiraux
""" """
import sys, dl
flags = sys.getdlopenflags()
# Import C++ symbols in a global scope
# This is necessary for signal compiled in different modules to be compatible
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
from wrap import * from wrap import *
# Recover previous flags
sys.setdlopenflags(flags)
import entity, signal_base import entity, signal_base
import re import re
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment