Merge pull request #2183 from ratwithacompiler/macos-python-fix-2

obs-scripting: Fix Python in new MacOS .app bundles
This commit is contained in:
Jim 2019-11-18 19:46:09 -08:00 • committed by jp9000
commit e99b542b72
3 changed files with 11 additions and 3 deletions

View file

@ -1651,6 +1651,13 @@ bool obs_scripting_load_python(const char *python_path)
add_to_python_path(SCRIPT_DIR);
#if __APPLE__
char *exec_path = os_get_executable_path_ptr("");
if (exec_path)
add_to_python_path(exec_path);
bfree(exec_path);
#endif
py_obspython = PyImport_ImportModule("obspython");
bool success = !py_error();
if (!success) {