mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ use ctypes instead of dl (deprecated in python3) module
This commit is contained in:
parent
98f5a79129
commit
1a4b9f6b0a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user