From f9f5f2834b052792bb3f1fce973754d952fc3e6d Mon Sep 17 00:00:00 2001 From: RedBug312 Date: Wed, 30 May 2018 15:09:31 +0800 Subject: [PATCH] Add cairo library name provided by pygobjectwin32 Search for `libcairo-gobject-2.dll` to get compatible with PyGObject for Windows --- cairocffi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairocffi/__init__.py b/cairocffi/__init__.py index 73a8f5a..e7b11c5 100644 --- a/cairocffi/__init__.py +++ b/cairocffi/__init__.py @@ -38,7 +38,7 @@ def dlopen(ffi, *names): raise OSError("dlopen() failed to load a library: %s" % ' / '.join(names)) -cairo = dlopen(ffi, 'cairo', 'cairo-2') +cairo = dlopen(ffi, 'cairo', 'cairo-2', 'cairo-gobject-2') class _keepref(object):