File paths: use release/ for scripts if possible again, this got
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Sep 2009 15:47:05 +0000 (15:47 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Sep 2009 15:47:05 +0000 (15:47 +0000)
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

index b1539d22909a7328e56505008aa77f879597b460..f6fa4f1ebd2414bd0696e7036cc8435880918c7d 100644 (file)
@@ -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;