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
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user