Show Python version on --version

issue #956
This commit is contained in:
James Booth
2017-08-10 22:17:05 +01:00
parent e9701cfafa
commit 17b4e45c57
4 changed files with 22 additions and 4 deletions

View File

@@ -41,6 +41,10 @@
#include "gitversion.h"
#endif
#ifdef HAVE_PYTHON
#include "plugins/python_plugins.h"
#endif
#include "profanity.h"
#include "common.h"
#include "command/cmd_defs.h"
@@ -131,7 +135,9 @@ main(int argc, char **argv)
#endif
#ifdef HAVE_PYTHON
g_print("Python plugins: Enabled\n");
gchar *python_version = python_get_version_number();
g_print("Python plugins: Enabled (%s)\n", python_version);
g_free(python_version);
#else
g_print("Python plugins: Disabled\n");
#endif