summaryrefslogtreecommitdiff
path: root/src/caja-python.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <[email protected]>2012-12-25 04:16:08 -0600
committerStefano Karapetsas <[email protected]>2013-01-22 14:10:34 +0100
commitd63756bd11b097f11f115d5477110893b7ee16a2 (patch)
tree192e7728bc678ff70d7534546adaf9fcb7a8e010 /src/caja-python.c
parentd2c11e9b06b48653e1d0b674eaf8d3230f1ef9bf (diff)
downloadpython-caja-d63756bd11b097f11f115d5477110893b7ee16a2.tar.bz2
python-caja-d63756bd11b097f11f115d5477110893b7ee16a2.tar.xz
Do not dlopen libpython
As libcaja-python is linked with -lpythonX.Y on all platforms, there is no need to dlopen libpython in order to load it.
Diffstat (limited to 'src/caja-python.c')
-rw-r--r--src/caja-python.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/caja-python.c b/src/caja-python.c
index a6a7478..21e7f42 100644
--- a/src/caja-python.c
+++ b/src/caja-python.c
@@ -155,17 +155,11 @@ 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())