[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23537] trunk/blender/source/blender/ blenlib/intern/util.c: File paths: use release/ for scripts if possible again, this got

Brecht Van Lommel brecht at blender.org
Mon Sep 28 17:47:05 CEST 2009


Revision: 23537
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23537
Author:   blendix
Date:     2009-09-28 17:47:05 +0200 (Mon, 28 Sep 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/util.c

Modified: trunk/blender/source/blender/blenlib/intern/util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/util.c	2009-09-28 15:34:15 UTC (rev 23536)
+++ trunk/blender/source/blender/blenlib/intern/util.c	2009-09-28 15:47:05 UTC (rev 23537)
@@ -902,16 +902,16 @@
 	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;





More information about the Bf-blender-cvs mailing list