[GRASS-dev] [GRASS-SVN] r60679 - grass/trunk/lib/python/script

Markus Neteler neteler at osgeo.org
Wed Jun 4 13:35:48 PDT 2014


On Wed, Jun 4, 2014 at 7:56 PM, Glynn Clements <glynn at gclements.plus.com> wrote:
...
> So either:
>
> 1. GRASS 7 will need .bat wrappers for Python scripts on Windows. That
> has the same issues as using shell=True, but at least it only applies
> in the case where we're executing a script.

... this would follow the apparently working method in GRASS 6.
Maybe worth a try also in GRASS 7 at this point.

> 2. If we know that the "program" is a script, the interpreter can be
> specified explicitly (i.e. "python path/to/script.py"). This keeps the
> shell out of the picture.

... how much effort is the latter? Check file type and path to file?

Markus


More information about the grass-dev mailing list