diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/python_plugins.c | 9 | ||||
-rw-r--r-- | src/plugins/python_plugins.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/python_plugins.c b/src/plugins/python_plugins.c index 61c7573f..40046200 100644 --- a/src/plugins/python_plugins.c +++ b/src/plugins/python_plugins.c @@ -65,6 +65,12 @@ _unref_module(PyObject *module) Py_XDECREF(module); } +const char* +python_get_version(void) +{ + return Py_GetVersion(); +} + void python_env_init(void) { @@ -72,9 +78,6 @@ python_env_init(void) python_init_prof(); - const char *ver = Py_GetVersion(); - cons_show("PYTHON: %s", ver); - gchar *plugins_dir = plugins_get_dir(); GString *path = g_string_new("import sys\n"); g_string_append(path, "sys.path.append(\""); diff --git a/src/plugins/python_plugins.h b/src/plugins/python_plugins.h index f3ab7bce..dda73405 100644 --- a/src/plugins/python_plugins.h +++ b/src/plugins/python_plugins.h @@ -43,6 +43,8 @@ void python_check_error(void); void allow_python_threads(); void disable_python_threads(); +const char* python_get_version(void); + void python_init_hook(ProfPlugin *plugin, const char *const version, const char *const status, const char *const account_name, const char *const fulljid); void python_on_start_hook(ProfPlugin *plugin); |