[GRASS-dev] python scripts in grass6

Glynn Clements glynn at gclements.plus.com
Mon Jul 6 07:32:42 EDT 2009


Martin Landa wrote:

> >> currently in GRASS 6 PGM variable must be set including python file
> >> extension, in GRASS 7 not, e.g.
> >>
> >> PGM=v.krige.py in GRASS6
> >> PGM=v.krige in GRASS7
> >>
> >> Would be possible to change building system in GRASS 6 to unify it with GRASS 7.
> >
> > GRASS 7 now *only* allows Python scripts, so I don't think you want to
> > unify it quite that far.
> 
> Probably I was unclear, I would like just to avoid having two separate
> Makefiles for one Python script, one for GRASS7 with `PGM=module` and
> the second for GRASS6 with `PGM=module.py`. Nothing more.

Regardless, make needs to know which file it's supposed to be
creating. If you want to autodect this, it requires new code; current
or previous practice in GRASS 7 won't help.

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


More information about the grass-dev mailing list