[GRASS-dev] GRASS_ADDON_PATH question

Michael Barton michael.barton at asu.edu
Sat Jun 9 15:31:09 EDT 2007


Thanks William. I'll give this a try. What I'm trying to do is see if I can
set this for the scripts already in $GISBASE/etc/gm/script.

Michael


On 6/9/07 8:33 AM, "William Kyngesburye" <woklist at kyngchaos.com> wrote:

> GRASS_ADDON_PATH is used at startup, in init.sh.  All that happens is
> that it is added to the shell PATH.  So setting it after GRASS starts
> isn't going to work.  And there is a quirk with .grass.bashrc that it
> is not loaded until after the mapset selection happens, which is also
> after GRASS_ADDON_PATH is processed.
> 
> Try setting it in .bash_profile.
> 
> Note: the OSX app has a couple 'standard' addon locations:
> 
> /Library/GRASS/[version]/modules/bin
> $HOME/Library/GRASS/[version]/modules/bin
> 
> so if you put scripts there you don't have to fiddle with
> GRASS_ADDON_PATH.  As you might guess, /Library is available to all
> users and ~/Library is available only to one user.
> 
> On Jun 9, 2007, at 1:30 AM, Michael Barton wrote:
> 
>>> From reading the docs, it appears that if you set the
>>> GRASS_ADDON_PATH
>> variable, you should have access to any modules or scripts stored
>> therein by
>> simply typing the name of the module or script. However, it doesn¹t
>> seem to
>> work.
>> 
>> I¹ve tried setting this from the GRASS command line, .grass.bashrc
>> file for
>> testing, and my .grassrc6 file
>> 
>> Nothing seems to work. If I type the name of a script residing in the
>> directory I¹ve set in GRASS_ADDON_PATH, I simply get a file not
>> found error.
>> However, if I do ls $GRASS_ADDON_PATH, I get a valid listing of the
>> directory specified.
>> 
>> What am I missing here?
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "We are at war with them. Neither in hatred nor revenge and with no
> particular pleasure I shall kill every ___ I can until the war is
> over. That is my duty."
> 
> "Don't you even hate 'em?"
> 
> "What good would it do if I did? If all the many millions of people
> of the allied nations devoted an entire year exclusively to hating
> the ____ it wouldn't kill one ___ nor shorten the war one day."
> 
> <Ha, ha> "And it might give 'em all stomach ulcers."
> 
> - Tarzan, on war
> 

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton






More information about the grass-dev mailing list