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

Ton Roosendaal ton at blender.org
Sun Feb 27 19:38:56 CET 2005


Hi,

I am no windows dev, but cannot see why this could work... the only  
change is replacing a "\" with a "/". I thought windows prefers back  
slashing?

-Ton-

On 27 Feb, 2005, at 1:15, Andrea Weikert wrote:

> 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
> <util.c.diff>_______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list