Commit e26e7516 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Work around strange python installations without DLFCN module

parent 52508b9f
......@@ -19,7 +19,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from DLFCN import RTLD_LAZY, RTLD_GLOBAL
try:
from DLFCN import RTLD_LAZY, RTLD_GLOBAL
except ImportError:
# handle strange python installations, by importing from the deprecated dl
# module
from dl import RTLD_LAZY, RTLD_GLOBAL
all = ["dl_import"]
......
Supports Markdown
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