== installation paths ==

Hopefully last fix for path issues for this release
* The config folder should also be searched for in the 'local' path for local installations
(This code was already there, but removed in revision 30440)
This commit is contained in:
Andrea Weikert 2010-07-21 05:49:48 +00:00
parent 4c52624524
commit 51bd50f746

@ -953,6 +953,7 @@ 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;
@ -973,6 +974,7 @@ 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;
@ -988,6 +990,7 @@ 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;