1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[python] Show Python version

This commit is contained in:
Witold Filipczyk 2022-01-07 18:43:21 +01:00
parent d302b29d22
commit 8efb3b8a76

View File

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