diff options
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/pychrysa.c | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/pychrysalide/Makefile.am b/plugins/pychrysalide/Makefile.am index d9194b9..25c3e40 100644 --- a/plugins/pychrysalide/Makefile.am +++ b/plugins/pychrysalide/Makefile.am @@ -1,5 +1,5 @@ -pkglib_LTLIBRARIES = pychrysalide.la +lib_LTLIBRARIES = pychrysalide.la libdir = $(pluginslibdir) diff --git a/plugins/pychrysalide/pychrysa.c b/plugins/pychrysalide/pychrysa.c index 3e14add..f9cdad5 100644 --- a/plugins/pychrysalide/pychrysa.c +++ b/plugins/pychrysalide/pychrysa.c @@ -579,6 +579,12 @@ static void load_python_plugins(GPluginModule *plugin) /* Définition des zones d'influence */ +#ifndef DISCARD_LOCAL + + extend_python_path(PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "plugins" G_DIR_SEPARATOR_S "python"); + +#else + dir = opendir(PLUGINS_DATA_DIR G_DIR_SEPARATOR_S "python"); if (dir != NULL) @@ -586,8 +592,8 @@ static void load_python_plugins(GPluginModule *plugin) closedir(dir); extend_python_path(PLUGINS_DATA_DIR G_DIR_SEPARATOR_S "python"); } - else - extend_python_path(PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "plugins" G_DIR_SEPARATOR_S "python"); + +#endif g_plugin_module_log_variadic_message(plugin, LMT_INFO, _("PYTHONPATH environment variable set to '%s'"), |