[GRASS-user] Python Scripts

Hi All,

I’m trying to run a python script ‘r.hazard.flood.py’ in Grass 6.4.3RC1 (WinXP). I’m not sure where the script should be placed within the grass installation so i can use the GUI ‘File > Launch Script’. Should it be placed here:

C:\Program Files\GRASS GIS 6.4.3RC1\Python27\Scripts
or
C:\Program Files\GRASS GIS 6.4.3RC1\etc\gui\scripts
or somewhere else.

If it is run from the ‘gui\scripts’ location it just crashes.

Regards,

Paul J. Shapley

2012/11/19 Paul Shapley <p.shapley@gmail.com>:

I'm trying to run a python script 'r.hazard.flood.py' in Grass 6.4.3RC1
(WinXP). I'm not sure where the script should be placed within the grass
installation so i can use the GUI 'File > Launch Script'. Should it be
placed here:

you can place your script everywhere you want, eg.
`$HOME\grasscripts`. The dialog (`File->Launch script`) will add this
path to $GRASS_ADDON_PATH. Then the script should be callable from
GRASS.

C:\Program Files\GRASS GIS 6.4.3RC1\Python27\Scripts
or
C:\Program Files\GRASS GIS 6.4.3RC1\etc\gui\scripts
or somewhere else.

Normally the scripts are placed in $GISBASE\scripts. In GRASS 6.4 the
python scripts are not really fully supported. The normal user should
not touch the installation directory.

Putting the script into your home directory doesn't work?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

you can place your script everywhere you want, eg.
`$HOME\grasscripts`. The dialog (`File->Launch script`) will add this
path to $GRASS_ADDON_PATH. Then the script should be callable from
GRASS.

I've seen sometimes problems by added this to path.

is the path added to $GRASS_ADDON_PATH as per grass-session or permanently?
how can this entry be removed from $GRASS_ADDON_PATH?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Python-Scripts-tp5017370p5017424.html
Sent from the Grass - Users mailing list archive at Nabble.com.