[GRASS-user] grass 6.4 rc5 and python scripting

Ricardo Filipe Soares Garcia da ricardo.garcia.silva at gmail.com
Tue Jun 30 16:21:38 EDT 2009


Hello all
Thanks for your good advice. I decided to go with the option of
EXPORTing the grass addon path and put my scripts there, which works
ok, well... kind of.

It happens that when I launch GRASS from the terminal, the
GRASS_ADDON_PATH gets correctly added to the PATH and I can load my
test script. However, if I start GRASS from the gnome menu (or
gnome-do) the GRASS_ADDON_PATH gets ignored. Maybe theres some config
file that I have to tweak?

On Tue, Jun 30, 2009 at 5:54 PM, Michael Barton<Michael.Barton at asu.edu> wrote:
> It really does work. It's pretty nice. I don't know how .grassrc6 handles
> separators--GRASS specific or OS specific.
>
> Michael
> ______________________________
> C. Michael Barton, Professor of Anthropology
> Director of Graduate Studies, School of Human Evolution & Social Change
> Director, Center for Social Dynamics & Complexity
> Arizona State University
> Tempe, AZ  85287-2402
> USA
>
> voice: 480-965-6262; fax: 480-965-7671
> www: http://www.public.asu.edu/~cmbarton
>
> On Jun 30, 2009, at 9:31 AM, Hamish wrote:
>
>>
>> Michael Barton wrote:
>>>
>>> 3. Set the GRASS_ADDON_PATH variable in the .grassrc6 file
>>> (or its equivalent in GRASS 7). For example, I could add...
>>>
>>> GRASS_ADDON_PATH: /Users/Michael/Desktop;/Users/Michael/Documents
>>>
>>> ...and any script on my desktop or in my documents folder
>>> would be accessible to g.parser and GRASS. (Note: I'm not
>>> sure if ";" or something else should be the separator
>>> between paths). This is very convenient for having a
>>> permanent folder outside the main GRASS distribution
>>> location where you can put any custom scripts.
>>
>>
>> does that really work??
>> it should be an environment variable, not a g.gisenv GRASS variable.
>>
>>
>> the path separator on UNIXes is ':', the path sep on MS Win is ';'.
>> but those shouldn't be needed here (unless you want to define
>> multiple addon dirs).
>>
>>
>> Hamish
>>
>>
>>
>>
>>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>



-- 
___________________________ ___ __
Ricardo Garcia Silva


More information about the grass-user mailing list