[GRASS-user] Scripting Python from inside GRASS

Hello,
reading
http://grass.osgeo.org/wiki/GRASS_and_Python

I may still ask:
* is there a IPython-enhanced Python scripting console withing GRASS?
* What is the preferrred way to script grass from Python?
* Do I need to be inside GRASS shell to script in order to have all
environment parameters set?

Thanks,
Timmie

Tim Michelsen wrote:

reading
http://grass.osgeo.org/wiki/GRASS_and_Python

I may still ask:
* is there a IPython-enhanced Python scripting console withing GRASS?

No.

* What is the preferrred way to script grass from Python?

Similar to shell scripts, but there's a Python module (grass.script)
which provides convenient interfaces to the most common commands.

See any of the scripts in 7.0 for reference.

* Do I need to be inside GRASS shell to script in order to have all
environment parameters set?

Either that, or you need to set up the environment manually.

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