obs-scripting: Add Py 3.8+ C-API changes

Closes obsproject/obs-studio#3689
This commit is contained in:
PatTheMav 2021-01-27 09:31:30 -08:00 • committed by jp9000
commit ecdc81ba0f
3 changed files with 68 additions and 1 deletions

View file

@ -1654,7 +1654,9 @@ bool obs_scripting_load_python(const char *python_path)
/* ---------------------------------------------- */
/* Load main interface module */
add_to_python_path(SCRIPT_DIR);
char *absolute_script_path = os_get_abs_path_ptr(SCRIPT_DIR);
add_to_python_path(absolute_script_path);
bfree(absolute_script_path);
#if __APPLE__
char *exec_path = os_get_executable_path_ptr("");