obs-scripting: Add Py 3.8+ C-API changes
Closes obsproject/obs-studio#3689
This commit is contained in:
parent
44ace7618f
commit
ecdc81ba0f
3 changed files with 68 additions and 1 deletions
4
deps/obs-scripting/obs-scripting-python.c
vendored
4
deps/obs-scripting/obs-scripting-python.c
vendored
|
|
@ -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("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue