From e4756f4c330bc422f23d26bf7f6afaa0fe849dda Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 17 Jul 2010 15:42:01 +0000 Subject: [PATCH] 2.5: installation paths, local directories (in the same folder as executable) are now considered system rather than user directories, as you would expect these to override any system directory for local installations. --- source/blender/blenlib/intern/path_util.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 2f8e4ab44b2..470676cb461 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -953,11 +953,11 @@ char *BLI_get_folder(int folder_id, char *subfolder) return NULL; case BLENDER_USER_DATAFILES: - if (get_path_local(path, "datafiles", subfolder)) break; if (get_path_user(path, "datafiles", subfolder, "BLENDER_USER_DATAFILES")) break; return NULL; case BLENDER_SYSTEM_DATAFILES: + if (get_path_local(path, "datafiles", subfolder)) break; if (get_path_system(path, "datafiles", subfolder, "BLENDER_SYSTEM_DATAFILES")) break; return NULL; @@ -973,11 +973,11 @@ char *BLI_get_folder(int folder_id, char *subfolder) return NULL; case BLENDER_USER_CONFIG: - if (get_path_local(path, "config", subfolder)) break; if (get_path_user(path, "config", subfolder, "BLENDER_USER_CONFIG")) break; return NULL; case BLENDER_SYSTEM_CONFIG: + if (get_path_local(path, "config", subfolder)) break; if (get_path_system(path, "config", subfolder, "BLENDER_SYSTEM_CONFIG")) break; return NULL; @@ -988,11 +988,11 @@ char *BLI_get_folder(int folder_id, char *subfolder) return NULL; case BLENDER_USER_SCRIPTS: - if (get_path_local(path, "scripts", subfolder)) break; if (get_path_user(path, "scripts", subfolder, "BLENDER_USER_SCRIPTS")) break; return NULL; case BLENDER_SYSTEM_SCRIPTS: + if (get_path_local(path, "scripts", subfolder)) break; if (get_path_system(path, "scripts", subfolder, "BLENDER_SYSTEM_SCRIPTS")) break; return NULL; @@ -1002,6 +1002,7 @@ char *BLI_get_folder(int folder_id, char *subfolder) return NULL; case BLENDER_SYSTEM_PYTHON: + if (get_path_local(path, "python", subfolder)) break; if (get_path_system(path, "python", subfolder, "BLENDER_SYSTEM_PYTHON")) break; return NULL; }