BLI_path: use native normalize (avoids // prefix on UNIX)

This commit is contained in:
Campbell Barton
2023-05-15 19:47:53 +10:00
parent 7eb55a5fa9
commit 5285cd9a7b
3 changed files with 5 additions and 5 deletions

View File

@@ -2065,7 +2065,7 @@ static int arg_handle_load_file(int UNUSED(argc), const char **argv, void *data)
STRNCPY(filepath, argv[0]);
BLI_path_slash_native(filepath);
BLI_path_abs_from_cwd(filepath, sizeof(filepath));
BLI_path_normalize(filepath);
BLI_path_normalize_native(filepath);
/* load the file */
BKE_reports_init(&reports, RPT_PRINT);