summaryrefslogtreecommitdiff
path: root/src/caja-python.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-13 05:57:20 -0800
committerStefano Karapetsas <[email protected]>2014-01-13 05:57:20 -0800
commit342daa42359da5edb023cbd6bb6afd4fd63a088c (patch)
tree08f23ffbaab794432dcb18d5bdc554d37e495db3 /src/caja-python.c
parent276b5f84da52084c31321cb363f90e2de55242e0 (diff)
parent0ce31a551ded5d0e03a7309a0cfcb38add3d203a (diff)
downloadpython-caja-342daa42359da5edb023cbd6bb6afd4fd63a088c.tar.bz2
python-caja-342daa42359da5edb023cbd6bb6afd4fd63a088c.tar.xz
Merge pull request #12 from infirit/master
Revert "Do not dlopen libpython" + various fixes and cleanups
Diffstat (limited to 'src/caja-python.c')
-rw-r--r--src/caja-python.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/caja-python.c b/src/caja-python.c
index 21e7f42..a6a7478 100644
--- a/src/caja-python.c
+++ b/src/caja-python.c
@@ -155,11 +155,17 @@ static gboolean
caja_python_init_python (void)
{
PyObject *caja;
+ GModule *libpython;
char *argv[] = { "caja", NULL };
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);
+ if (!libpython)
+ g_warning("g_module_open libpython failed: %s", g_module_error());
+
debug("Py_Initialize");
Py_Initialize();
if (PyErr_Occurred())