[GRASS-dev] scripts don't launch GUI from the msys command line in winGRASS

Glynn Clements glynn at gclements.plus.com
Fri Feb 5 15:49:26 EST 2010


Hamish wrote:

> I had tried a WinGrass installer from December (well before the latest
> rounds of argv[0] and G_spawn() changes) and it was the same. --ui is
> needed from the msys prompt.
> 
> I tried from the DOS prompt as well (even setting GRASS_GUI=wxpython),
> but that just returns you to the C:\> prompt. You can start g.gui from
> there ok though.   shrug.

It works for me with GRASS_GUI=wxpython (for recent versions of 6.4; I
think that you'll need r40717 if there are spaces in $GISBASE).

> > ### second issue
> > 
> > Also,  copy a script and rename the copy (e.g., copy
> > r.blend to r.blend2), leaving it in the scripts folder, then
> > copy the script's *.bat file (in bin), rename the copy
> > (e.g., , e.g., r.blend.bat to r.bend2.bat), and edit the
> > *.bat file so that it points to the proper renamed script
> > copy (e.g., now points to r.blend2). Type the script's name
> > on the msys command line and press return.
> > 
> > There is an error that the script cannot be found. 
> > 
> > Any thoughts?
> 
> .. perhaps restart GRASS? ?

In bash, try the "hash" command, e.g. "hash -r".

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


More information about the grass-dev mailing list