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:
parent
d302b29d22
commit
8efb3b8a76
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user