mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend-tools: Display Python version in UI
This commit is contained in:
committed by
Matt Gajownik
parent
dba3401ceb
commit
1b2fc73021
+11
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user