[GRASS-dev] [GRASS GIS] #2395: Startup runs as in Cygwin when CYGWIN is set although running as native application
GRASS GIS
trac at osgeo.org
Wed Aug 20 01:50:53 PDT 2014
#2395: Startup runs as in Cygwin when CYGWIN is set although running as native
application
------------------------------------------------------+---------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-releasebranch70
Keywords: cygwin, wingrass, environmetal variables | Platform: MSWindows 8
Cpu: Unspecified |
------------------------------------------------------+---------------------
Comment(by hellik):
Replying to [comment:3 hellik]:
> Replying to [comment:2 sindile]:
> > I have replaced etc\grass70.py with the attached grass.py (have
renamed it to grass70.py) as per this email
http://lists.osgeo.org/pipermail/grass-user/2014-August/070728.html
>
> in the attached script
>
> {{{
> # Variables substituted during build process
> if 'GISBASE' in os.environ:
> gisbase = os.environ['GISBASE']
> else:
> gisbase = "@GISBASE@"
> cmd_name = "@START_UP@"
> grass_version = "@GRASS_VERSION_NUMBER@"
> ld_library_path_var = '@LD_LIBRARY_PATH_VAR@'
> if 'GRASS_PROJSHARE' in os.environ:
> config_projshare = os.environ['GRASS_PROJSHARE']
> else:
> config_projshare = "@CONFIG_PROJSHARE@"
> }}}
>
> it should be something (adapted to beta3) like
>
> {{{
> # Variables substituted during build process
> if 'GISBASE' in os.environ:
> gisbase = os.environ['GISBASE']
> else:
> gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.0svn"
> cmd_name = "grass70"
> grass_version = "7.0.0svn"
> ld_library_path_var = 'PATH'
> if 'GRASS_PROJSHARE' in os.environ:
> config_projshare = os.environ['GRASS_PROJSHARE']
> else:
> config_projshare = "/c/OSGeo4W/share/proj"
> }}}
>
>
for beta3 in osgeo4w it should be:
{{{
# Variables substituted during build process
if 'GISBASE' in os.environ:
gisbase = os.environ['GISBASE']
else:
gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.0beta3"
cmd_name = "grass70"
grass_version = "7.0.0beta3"
ld_library_path_var = 'PATH'
if 'GRASS_PROJSHARE' in os.environ:
config_projshare = os.environ['GRASS_PROJSHARE']
else:
config_projshare = "/c/OSGeo4W/share/proj"
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2395#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list