Commit c04533b0 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix dlopen() flags problem with Python 3.6

parent 99d8d449
Pipeline #241 failed with stage
in 181 minutes and 10 seconds
......@@ -24,9 +24,13 @@ import sys
import os.path
try:
from DLFCN import RTLD_LAZY, RTLD_GLOBAL
from os import RTLD_LAZY, RTLD_GLOBAL
dl_flags = RTLD_LAZY | RTLD_GLOBAL
except ImportError:
try:
from DLFCN import RTLD_LAZY, RTLD_GLOBAL
dl_flags = RTLD_LAZY | RTLD_GLOBAL
except ImportError:
# handle strange python installations, by importing from the deprecated dl
# module, otherwise from ctypes
try:
......
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