[GRASS-dev] Re: [GRASS-user] How to write scripts in GRASS

Glynn wrote:

6.4 and 7.0 include a Python module (named "grass") which provides
various utility functions for writing GRASS scripts in Python.

The best available documentation for this module is the code itself
(lib/python/grass.py in 6.4 and 7.0) and the scripts which use it
(scripts/*/*.py, currently only in 7.0). There is also a README file
(lib/python/README.txt).

I've just had a glance at that README, and it seems rather clear to me
that the file would better be incorporated as Doxygen comments in the .py
file.

http://www.stack.nl/~dimitri/doxygen/docblocks.html#pythonblocks

"Since python looks more like Java than like C or C++, you should set OPTMIZE_OUTPUT_JAVA to YES in the config file."

?

Hamish