blob: 1f07fb004d1a27608bce3e1d0513e7bb76d54a7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/wx/lib/wxcairo/wx_pycairo.py b/wx/lib/wxcairo/wx_pycairo.py
index 19a28dd131f659cd596de280bc52f3f7fb1acb5f..dc6bea6afb36e4197fac990877b7112ade84d6f4 100644
--- a/wx/lib/wxcairo/wx_pycairo.py
+++ b/wx/lib/wxcairo/wx_pycairo.py
@@ -25,7 +25,7 @@ import ctypes.util
#----------------------------------------------------------------------------
# A reference to the cairo shared lib via ctypes.CDLL
-cairoLib = None
+cairoLib = ctypes.CDLL("@libcairo@")
# A reference to the pycairo C API structure
pycairoAPI = None
@@ -196,7 +196,11 @@ def _findCairoLib():
# For other DLLs we'll just use a dictionary to track them, as there
# probably isn't any need to use them outside of this module.
-_dlls = dict()
+_dlls = {
+ "gdk": ctypes.CDLL("@libgdk@"),
+ "pangocairo": ctypes.CDLL("@libpangocairo@"),
+ "appsvc": ctypes.CDLL(None),
+}
def _findHelper(names, key, msg):
dll = _dlls.get(key, None)
|