[GRASS-dev] running grass from python

Glynn Clements glynn at gclements.plus.com
Fri Oct 15 18:07:31 EDT 2010


Massimo Di Stefano wrote:

> i'm intersted to know if it is possible to use the grass functionalities directly from python
> without the needs to run a grass session from bash.
> 
> i think the first thisk i have to do is to set my PYTHONPATH to where i have grass-python libs
> then i have to set the grass environment vars (gisenv?) 
> 
> have you any hints on how to do it (if possible) ?

http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly

The most important environment variables are GISBASE, GISRC, PATH and
LD_LIBRARY_PATH (or equivalent).

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


More information about the grass-dev mailing list