[GRASS-dev] Python handling in winGRASS7 [was: Re: GRASS GIS 7 tech-preview release preparations]
glynn at gclements.plus.com
Fri Jul 26 11:18:53 PDT 2013
Moritz Lennert wrote:
> Would it be a possible option to implement only a) and document the fact
> that the user has to take care of creating a working Python installation
> herself if they want b) ?
In order to be able to "execute" scripts via the command prompt,
batch files, system(), subprocess.Popen() or similar, the extension
must be associated with an interpreter in the registry. This cannot be
overridden via environment variables.
Note that Python 3 includes a launcher utility for Windows:
The idea is that the .py extension can be associated with the
launcher, which can be configured to use a specific version of Python
in a specific context.
I don't know whether it's possible to make use of this without
installing the rest of Python 3, though.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev