[GRASSLIST:4324] Python and GRASS57

Hi!
I want to use GRASS57 in a Python script/environment.
How can I start GRASS within in the script and use the GRASS functions?

Thanks,
Bernhard

On Thu, Sep 09, 2004 at 11:08:26AM +0000, Bernhard Hoefle wrote:

I want to use GRASS57 in a Python script/environment.
How can I start GRASS within in the script and use the GRASS functions?

For a start you could use a shell script
that starts GRASS (without gui) and then start python
with your python script from within the GRASS environment.
You can use os.system() to run grass commands.

  Bernhard