[GRASS-dev] Re: [GRASS GIS] #1178: WinGrass: g.extension - problem
with path to $GISBASE
GRASS GIS
trac at osgeo.org
Tue Oct 26 12:40:04 EDT 2010
#1178: WinGrass: g.extension - problem with path to $GISBASE
---------------------------------------------------------------+------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: Installation | Version: svn-releasebranch64
Keywords: wingrass, g.extension, path, installation, addons | Platform: MSWindows Vista
Cpu: x86-32 |
---------------------------------------------------------------+------------
Comment(by hellik):
Replying to [comment:22 hellik]:
> Replying to [comment:19 hamish]:
> > Should we (can we?) rewrite that file each time at program startup to
reflect the current shortname version of the path?
> >
>
> a possible example from the osgeo4w-commandline-starting-script for
getting dynamically the current path:
>
> {{{
> @echo off
> rem Root OSGEO4W home dir to the same directory this script exists in
> set OSGEO4W_ROOT=%~dp0
> rem Remove trailing backslash
> set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1%
> }}}
>
> Helmut
FYI instead of the installation path in windows written in the startup-
script grass64svn.bat by the nsis-installer once during installation:
(http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows
/GRASS-Installer.nsi#L645)
for example
{{{
[...]
rem Set GRASS Installation Directory Variable
set GRASSDIR=C:\Program Files\GRASS-64-SVN
[...]
}}}
I've tried following in the startup-script grass64svn.bat
{{{
[...]
set GRASSDIR=%~dps0
set GRASSDIR=%GRASSDIR:~0,-1%
[...]
}}}
the installation path is expanded in the short form without a trailing
backslash.
wingrass64 is starting and working normally.
so maybe this way of getting the shortform of the installation path could
help for ''make'' used by g.extension (maybe also for the +nadgrids-
problem with spaces in path, ...)?
Helmut
p.s. any idea about http://trac.osgeo.org/grass/ticket/1103 (releasing the
windows command line)
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1178#comment:23>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list