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; }