[GRASS-dev] [GRASS GIS] #2681: Remove legacy meaning of LOCATION variable

GRASS GIS trac at osgeo.org
Sat Jun 9 18:12:11 PDT 2018


#2681: Remove legacy meaning of LOCATION variable
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  task        |     Status:  new
  Priority:  blocker     |  Milestone:  8.0.0
 Component:  Startup     |    Version:  svn-trunk
Resolution:              |   Keywords:  init, grass.py, interface, CLI,
       CPU:              |  environment variables
  Unspecified            |   Platform:  All
-------------------------+-------------------------------------------------

Comment (by wenzeslaus):

 As for using the name `LOCATION` to mean "full path to a mapset",
 remaining places are the following:

 The main in the variable defined for the shell in `lib/init/grass.py`.
 That seems to be only interface-related usage. I think this should be
 replaced by something else like `MAPSET_PATH` or `FULL_MAPSET`.

 There is something in `lib/init/README` which would likely use general
 update.

 There might be some bad examples in existing code, these two may qualify:
 `raster/r.mapcalc/testsuite/const_map_test.sh` and
 `testsuite/raster/raster_md5test.sh`.

 There are places which need deeper look, namely `lib/gis/make_mapset.c`
 and `lib/gis/location.c`.

 * source:grass/trunk/lib/init/grass.py
 * source:grass/trunk/lib/init/README
 * source:grass/trunk/raster/r.mapcalc/testsuite/const_map_test.sh
 * source:grass/trunk/testsuite/raster/raster_md5test.sh
 * source:grass/trunk/lib/gis/make_mapset.c
 * source:grass/trunk/lib/gis/location.c

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2681#comment:5>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list