[GRASS-user] new module: r.surf.volcano

Hamish hamish_b at yahoo.com
Mon Apr 20 16:36:23 EDT 2009


Dylan Beaudette wrote:
> Possible stupid question: do we have a standardized Python
> script template, something like the old shell-style template?

Possible stupid answer: because unix scripting and python both
use '#' as the comment character, 'g.module --script' will create
a script template for both exactly the same. just change the
shebang line at the top from /bin/sh to /bin/python or whatever
that has to be and also replace the "are we already in grass?"
shell-style check at the end.

and of course reuse from the other python scripts in (mostly)
grass7's scripts/ dir as a good guide for setting up temp files
and other common but subtle tasks.


Hamish



      



More information about the grass-user mailing list