[GRASS-dev] python scripts in grass6

Glynn Clements glynn at gclements.plus.com
Wed Jul 8 11:12:46 EDT 2009


Martin Landa wrote:

> >> Then PGM should always contain file extension.
> >
> > No, because the file extension is removed on Unix, and it doesn't
> > appear in the name of the manpage or HTML file. PGM is the *name* of
> > the module or script, not necessarily its filename.
> 
> That is what I was asking for. So how to avoid python file extension
> in Makefiles for GRASS 6. Currently, e.g.
> 
> PGM=v.krige
> 
> fails, must be
> 
> PGM=v.krige.py

I described one solution in reply to the original post. Another
solution is to have separate "script" and "pyscript" targets.

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


More information about the grass-dev mailing list