[GRASS-user] Python scripting

Glynn Clements glynn at gclements.plus.com
Fri Feb 13 09:14:47 EST 2009


Georg Kaspar wrote:

> I'm sorry but I just can't find the python grass module anywhere on the 
> internet. Where can I get it from?
> Everytime I triy to run a python script I get "ImportError: No module 
> named grass".

It's part of the GRASS source code: lib/python/grass.py. It should get
installed into $GISBASE/etc/python during the build process, and
Init.sh should add that directory to PYTHONPATH.

Also, it's only present in 6.4, 6.5 and 7.0, not in earlier versions.

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


More information about the grass-user mailing list