frontend-tools: Display Python version in UI
This commit is contained in:
parent
cee2e7db3f
commit
89d9493468
6 changed files with 40 additions and 0 deletions
11
deps/obs-scripting/obs-scripting-python.c
vendored
11
deps/obs-scripting/obs-scripting-python.c
vendored
|
|
@ -1590,6 +1590,17 @@ bool obs_scripting_python_runtime_linked(void)
|
|||
return (bool)RUNTIME_LINK;
|
||||
}
|
||||
|
||||
void obs_scripting_python_version(char *version, size_t version_length)
|
||||
{
|
||||
#if RUNTIME_LINK
|
||||
snprintf(version, version_length, "%d.%d", python_version.major,
|
||||
python_version.minor);
|
||||
#else
|
||||
snprintf(version, version_length, "%d.%d", PY_MAJOR_VERSION,
|
||||
PY_MINOR_VERSION);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool obs_scripting_python_loaded(void)
|
||||
{
|
||||
return python_loaded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue