diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-09-28 19:47:05 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-09-28 19:47:05 +0400 |
commit | 801d8b600f301d825aa8c4da94d26d5367abf924 (patch) | |
tree | 0ef81ce15918a1e4976929cbad7aea9243a4379c | |
parent | ea41a343c06db1077058a75a7835cac9508e5285 (diff) |
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.
-rw-r--r-- | source/blender/blenlib/intern/util.c | 14 |
1 files 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; |