From 801d8b600f301d825aa8c4da94d26d5367abf924 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 28 Sep 2009 15:47:05 +0000 Subject: File paths: use release/ for scripts if possible again, this got changed with the file path changes, the reason to check this first is that it allows to edit py scripts without having to run the build system for each change. --- source/blender/blenlib/intern/util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index b1539d22909..f6fa4f1ebd2 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -902,16 +902,16 @@ static int gethome_path_local(char *targetpath, char *folder_name) s = BLI_last_slash(bprogname); i = s - bprogname + 1; BLI_strncpy(bprogdir, bprogname, i); - - /* try ./.blender/folder_name */ - if(test_data_path(targetpath, bprogdir, ".blender", folder_name)) + + /* try release/folder_name (CWD relative) */ + if(test_data_path(targetpath, BLI_getwdN(cwd), "release", folder_name)) return 1; - + if(test_data_path(targetpath, bprogdir, "release", folder_name)) return 1; - - /* try release/folder_name (CWD relative) */ - if(test_data_path(targetpath, BLI_getwdN(cwd), "release", folder_name)) + + /* try ./.blender/folder_name */ + if(test_data_path(targetpath, bprogdir, ".blender", folder_name)) return 1; return 0; -- cgit v1.2.3