[GRASS5] Add-on initialization on GRASS startup

Glynn Clements glynn at gclements.plus.com
Wed Oct 19 14:57:29 EDT 2005


Sorokine, Alexandre wrote:

> If I am creating an add-on for GRASS and the add-on needs some kind of
> initialization (i.e., to set some environment variables) is there a
> standard way to do this on GRASS startup?  I mean is there a facility in
> GRASS similar to /etc/profile.d/ for UNIX shells where you can put
> initialization scripts and they will run automatically on shell startup?

The startup script will run ~/.grass.bashrc (for bash) or
~/.grass.cshrc (for csh/tcsh) if it exists.

Alternatively, it wouldn't be hard to modify the startup script itself
($GISBASE/etc/Init.sh).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list