[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/python
BPY_interface.c BPY_menus.c BPY_menus.h blender/source/blender/python/api2_2x
NMesh.c NMesh.h blender/source/blender/python/api2_2x/doc Draw.py NMesh.py
Nathan Letwory
bf-committers@blender.org
Thu, 22 Jan 2004 11:27:09 +0200
Coming off of my lazy but, a diff:
Index: source/blender/python/BPY_menus.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/BPY_menus.c,v
retrieving revision 1.5
diff -r1.5 BPY_menus.c
284a285,287
> #ifdef WIN32
> BLI_make_file_string ("/", line, BLI_gethome(), BPYMENU_DATAFILE);
> #else
285a289
> #endif
371a376,378
> #ifdef WIN32
> BLI_make_file_string("/", fname, BLI_gethome(), BPYMENU_DATAFILE);
> #else
372a380
> #endif
617a626,628
> #ifdef WIN32
> BLI_make_file_string ("/", dirname, BLI_gethome(), "scripts/");
> #else
618a630
> #endif
654a667
> #ifdef WIN32
655a669,671
> #else
> BLI_make_file_string("/", fname, BLI_gethome(),BPYMENU_DATAFILE);
> #endif
_______________________________________________________
Nathan Letwory wrote:
> On windows BPY_menus.c is a little too enthousiastic: .Bpymenus and the
> scripts directory are by the code expected to be at .blender/.blender/*.
> The thing is that when creating the file strings using BLI_gethome() on
> windows the BLI_gethome() already returns the string with .blender/
> appended to it.
>
> For BPY_menus.c would be easiest to #ifdef the calls to
> BLI_make_file_string that use BLI_gethome() as parameter as follows
>
> #ifdef WIN32
> BLI_make_file_string ("/", dirname, BLI_gethome(), "scripts/");
> #else
> BLI_make_file_string ("/", dirname, BLI_gethome(),
> ".blender/scripts/");
> #endif
>
> of course changing as needed. The functions that are concerned with this
> change are BPyMenu_Init(), bpymenu_WriteDateFile(),
> bpymenu_CreateFromFile().
>
> /Nathan Letwory
>
> Willian Padovani Germano wrote:
>
>> ianwill (Willian Padovani Germano) 2004/01/20 05:57:48 CET
>>
>> Modified files:
>> blender/source/blender/python BPY_interface.c BPY_menus.c
>> BPY_menus.h
>
> <snip>
>
>> Log:
>> Scripts in menus:
>> - now the file .Bpymenus is in ~/.blender/, please delete the old one
>> - both ~/.blender/scripts/ and (if set) user pref scripts dir are
>> scanned for scripts
>
> <snip>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
--
---------------------------------------
Nathan Letwory
Software Developer
Axel Technologies Oy
Tykistökatu 4 D
20520 Turku
Tel +358 2 5128800, fax +358 2 5128811
suora: +358 2 5128850