[GRASS-dev] GRASS GIS 7 tech-preview release preparations

Glynn Clements glynn at gclements.plus.com
Sat Aug 31 10:53:10 PDT 2013


Moritz Lennert wrote:

> On 26/08/13 23:24, Glynn Clements wrote:
> >
> > Moritz Lennert wrote:
> >
> >> - Two concern Windows code page issues (#995, #1288) for which I don't
> >> really know what a possible solution would be (is it possible to create
> >> a launcher for GRASS in Python, without using .bat at all ?)
> >
> > If the Python interpreter is registered, you should just be able to
> > execute the grass70.py script.
> 
> Do I understand correctly that for this to work the grass70.py script 
> would need to be altered to
> 
> - set GISBASE

It already does that if GISBASE isn't set.

lib/init/grass.py has a hard-coded fallback to @GISBASE@, which is
replaced with the actual value by the Makefile running it through sed. 
The installer would need to do something similar to substitute the
install path (or the grass.py script could read it from the registry
on Windows).

> - set the environment variables as defined in mswindows/env.bat

It already sets most of them if they're not already set.

> - set the CWD to %USERPROFILE%

That's optional. GRASS doesn't care what the current directory is.

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


More information about the grass-dev mailing list