From 7c4ff1a2c72b9a4f2a84a2e10c7ea0450dbf5227 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 19 Jan 2019 01:29:22 +0100 Subject: Include Python 3 ABI flags in shared library name. Python 3 appends the ABI flags to the version in the shared library file name: since this library is loaded as a gmodule, the correct file name must be provided. --- src/caja-python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/caja-python.c') diff --git a/src/caja-python.c b/src/caja-python.c index 237e216..e9940ab 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -174,8 +174,8 @@ caja_python_init_python (void) if (Py_IsInitialized()) return TRUE; - debug("g_module_open " PY_LIB_LOC "/libpython" PYTHON_VERSION "." G_MODULE_SUFFIX ".1.0"); - libpython = g_module_open(PY_LIB_LOC "/libpython" PYTHON_VERSION "." G_MODULE_SUFFIX ".1.0", 0); + debug("g_module_open " PY_LIB_LOC "/libpython" PYTHON_VERSION PYTHON_ABIFLAGS "." G_MODULE_SUFFIX ".1.0"); + libpython = g_module_open(PY_LIB_LOC "/libpython" PYTHON_VERSION PYTHON_ABIFLAGS "." G_MODULE_SUFFIX ".1.0", 0); if (!libpython) g_warning("g_module_open libpython failed: %s", g_module_error()); -- cgit v1.2.1