mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-10 02:26:15 -04:00
obs-scripting: Update Linux slice for CMake build framework 3.0
This commit is contained in:
7
deps/obs-scripting/obs-scripting-python.c
vendored
7
deps/obs-scripting/obs-scripting-python.c
vendored
@@ -1750,6 +1750,13 @@ bool obs_scripting_load_python(const char *python_path)
|
||||
}
|
||||
dstr_free(&resource_path);
|
||||
#else
|
||||
char *relative_script_path =
|
||||
os_get_executable_path_ptr("../" SCRIPT_DIR);
|
||||
if (relative_script_path) {
|
||||
add_to_python_path(relative_script_path);
|
||||
}
|
||||
bfree(relative_script_path);
|
||||
|
||||
char *absolute_script_path = os_get_abs_path_ptr(SCRIPT_DIR);
|
||||
add_to_python_path(absolute_script_path);
|
||||
bfree(absolute_script_path);
|
||||
|
||||
Reference in New Issue
Block a user