[Bf-committers] Small patch for HOME directory under Windows

Andrea Weikert andrea at aweikert.de
Sun Feb 27 01:15:44 CET 2005


Hi Stephen,

you are of course right with your suggenstion.

The patch fixes the problem of using a single \ instead of \\ or / in the
filename when for Windows the Blender files are stored in the directory
specified by the HOME environment variable.

I haven't found this in the bugtracker.

--- Andrea

----- Original Message ----- 
From: "Andrea Weikert" <andrea at aweikert.de>
To: "bf-blender developers" <bf-committers at projects.blender.org>
Sent: Saturday, February 26, 2005 7:30 PM
Subject: [Bf-committers] Small patch for HOME directory under Windows


Hello everybody,

this is my first post to the list with a really small patch for something that
caught my eye when compiling Blender yesterday. It's not a big issue, but the
patch should maybe be applied next time the file is touched.

A big thanks to all you coders, you're doing great work!

--- Elubie (Andrea Weikert)

=====================================================================
Index: util.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/blenlib/intern/util.c,v
retrieving revision 1.17
diff -u -r1.17 util.c
--- util.c 12 Dec 2004 13:29:54 -0000 1.17
+++ util.c 26 Feb 2005 17:24:39 -0000
@@ -496,7 +496,7 @@

   ret = getenv("HOME");
   if(ret) {
-   sprintf(dir, "%s\.blender", ret);
+   sprintf(dir, "%s/.blender", ret);
    if (BLI_exists(dir)) return dir;
   }




--------------------------------------------------------------------------------


_______________________________________________
Bf-committers mailing list
Bf-committers at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-committers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: util.c.diff
Type: application/octet-stream
Size: 468 bytes
Desc: not available
Url : http://projects.blender.org/pipermail/bf-committers/attachments/20050227/ca6a848d/util.c.obj


More information about the Bf-committers mailing list