Cleanup: replace BLI_join_dirfile with BLI_path_join
These functions are almost identical, the main difference being BLI_join_dirfile didn't trim existing slashes when joining paths however this isn't an important difference that warrants a separate function.
This commit is contained in:
@@ -531,7 +531,7 @@ PyObject *Freestyle_Init(void)
|
||||
const char *const path = BKE_appdir_folder_id(BLENDER_SYSTEM_SCRIPTS, "freestyle");
|
||||
if (path) {
|
||||
char modpath[FILE_MAX];
|
||||
BLI_join_dirfile(modpath, sizeof(modpath), path, "modules");
|
||||
BLI_path_join(modpath, sizeof(modpath), path, "modules");
|
||||
PyObject *sys_path = PySys_GetObject("path"); /* borrow */
|
||||
PyObject *py_modpath = PyUnicode_FromString(modpath);
|
||||
PyList_Append(sys_path, py_modpath);
|
||||
|
||||
Reference in New Issue
Block a user