[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:20:09 +0200
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>