about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2017-08-10 22:17:05 +0100
committerJames Booth <boothj5@gmail.com>2017-08-10 22:17:05 +0100
commit17b4e45c5795ed191d06964feeb2d20ae7ec6e94 (patch)
tree5aea07eb10dd1c0cea5dc50591fed8e5e01f4a0b /src/main.c
parente9701cfafa74946dcac944a5ace1e1d747968313 (diff)
downloadprofani-tty-17b4e45c5795ed191d06964feeb2d20ae7ec6e94.tar.gz
Show Python version on --version
issue #956
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a473ac42..3910c47a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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