From 8efb3b8a7650ea0e3cb9646bfe77dd563f03e053 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 7 Jan 2022 18:43:21 +0100 Subject: [PATCH] [python] Show Python version --- src/scripting/python/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scripting/python/core.c b/src/scripting/python/core.c index 76b971857..544842a39 100644 --- a/src/scripting/python/core.c +++ b/src/scripting/python/core.c @@ -380,6 +380,8 @@ python_error: static wchar_t *program_name; +static char elpythonversion[32]; + void init_python(struct module *module) { @@ -399,6 +401,9 @@ init_python(struct module *module) Py_Initialize(); + snprintf(elpythonversion, 31, "Python %s", PY_VERSION); + module->name = elpythonversion; + if (!hooks_module_exists()) { return; }