diff --git a/deps/obs-scripting/obs-scripting-lua.c b/deps/obs-scripting/obs-scripting-lua.c index f52ce5eef..1e3f7b4d4 100644 --- a/deps/obs-scripting/obs-scripting-lua.c +++ b/deps/obs-scripting/obs-scripting-lua.c @@ -1327,22 +1327,22 @@ void obs_lua_load(void) #define PATH_MAX MAX_PATH #endif - char import_path[PATH_MAX]; + char import_path[PATH_MAX]; #ifdef __APPLE__ - struct dstr bundle_path; - - dstr_init_move_array(&bundle_path, os_get_executable_path_ptr("")); - dstr_cat(&bundle_path, "../PlugIns"); - char *absolute_plugin_path = os_get_abs_path_ptr(bundle_path.array); - - if(absolute_plugin_path != NULL) { - strcpy(import_path, absolute_plugin_path); - bfree(absolute_plugin_path); - } - dstr_free(&bundle_path); + struct dstr bundle_path; + + dstr_init_move_array(&bundle_path, os_get_executable_path_ptr("")); + dstr_cat(&bundle_path, "../PlugIns"); + char *absolute_plugin_path = os_get_abs_path_ptr(bundle_path.array); + + if (absolute_plugin_path != NULL) { + strcpy(import_path, absolute_plugin_path); + bfree(absolute_plugin_path); + } + dstr_free(&bundle_path); #else - strcpy(import_path, "./"); + strcpy(import_path, "./"); #endif dstr_printf(&tmp, startup_script_template, import_path, SCRIPT_DIR); startup_script = tmp.array; diff --git a/deps/obs-scripting/obs-scripting-python.c b/deps/obs-scripting/obs-scripting-python.c index 72edd9a95..bfef52ae1 100644 --- a/deps/obs-scripting/obs-scripting-python.c +++ b/deps/obs-scripting/obs-scripting-python.c @@ -1683,13 +1683,13 @@ bool obs_scripting_load_python(const char *python_path) char *absolute_plugin_path = os_get_abs_path_ptr(plugin_path.array); char *absolute_resource_path = os_get_abs_path_ptr(resource_path.array); - if(absolute_plugin_path != NULL) { + if (absolute_plugin_path != NULL) { add_to_python_path(absolute_plugin_path); bfree(absolute_plugin_path); } dstr_free(&plugin_path); - if(absolute_resource_path != NULL) { + if (absolute_resource_path != NULL) { add_to_python_path(absolute_resource_path); bfree(absolute_resource_path); }