[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-dev
Subject:    Re: [GRASS-dev] GRASS GIS 7 tech-preview release preparations
From:       Glynn Clements <glynn () gclements ! plus ! com>
Date:       2013-08-31 17:53:10
Message-ID: 21026.11654.624897.357264 () cerise ! gclements ! plus ! com
[Download RAW message or body]


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@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic