+ use ctypes instead of dl (deprecated in python3) module

This commit is contained in:
Artem Pavlenko 2009-12-21 13:44:30 +00:00
parent 98f5a79129
commit 1a4b9f6b0a

View File

@ -39,9 +39,10 @@ Several things happen when you do:
"""
import os
from sys import getdlopenflags, setdlopenflags
try:
from dl import RTLD_NOW, RTLD_GLOBAL
from ctypes import RTLD_NOW, RTLD_GLOBAL
except ImportError:
RTLD_NOW = 2
RTLD_GLOBAL = 256