[GRASS-dev] GRASS addons and toolboxes

Pietro peter.zamb at gmail.com
Thu Feb 18 22:51:07 PST 2016


Dear Anna and Vaclav,

I've recently implemented a function in r.green.install
("add_rgreen_menu" [0]) that modify the main_menu.xml and
toolboxes.xml files in the ~/.grass7/toolboxes directory adding a menu
for the r.green modules.

Just now, I've seen the flag "t" in g.extension but it is not clear to
me how should I prepare the xml files, should I add the r.green
toolboxes in:
https://trac.osgeo.org/grass/browser/grass-addons/grass7/toolboxes.xml ?

If yes there is a way to test it locally without messing the official:
grass-addons/grass7/toolboxes.xml?

Why generate an unique xml file for all the addons?

Perhaps g.extension could detect in the main root of the grass addon a
toolboxes directory and if the flag "-t" is true proceed installing
and merging the toolboxes in the GRASS GUI. For example for the
r.green module I should only define a directory in
grass-addons/grass7/raster/r.green/toolboxes that contains two xml
files (main_menu.xml and toolboxes.xml).

What do you think?

Have a nice day.

Pietro

[0] https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.green/r.green.install/r.green.install.py#L376


More information about the grass-dev mailing list