[GRASS-SVN] r73351 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 16 15:44:30 PDT 2018
Author: wenzeslaus
Date: 2018-09-16 15:44:30 -0700 (Sun, 16 Sep 2018)
New Revision: 73351
Modified:
grass/trunk/lib/init/grass.py
Log:
init: use correct name for 3D raster mask
The correct name is defined in include/raster3d.h as RASTER3D_MASK_MAP define.
The prompt from r48247 (rewritten from Python to Bash in r60216, #2284)
did not respect the new mask name from r47536 (from G3D_MASK to RASTER3D_MASK).
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2018-09-16 22:04:53 UTC (rev 73350)
+++ grass/trunk/lib/init/grass.py 2018-09-16 22:44:30 UTC (rev 73351)
@@ -1759,8 +1759,9 @@
f.write("PS1='{name} {version} ({location}):\\w > '\n".format(
name=grass_name, version=grass_version, location=location_name))
+ # TODO: have a function and/or module to test this
mask2d_test = 'test -f "$LOCATION/cell/MASK"'
- mask3d_test = 'test -d "$LOCATION/grid3/G3D_MASK"'
+ mask3d_test = 'test -d "$LOCATION/grid3/RASTER3D_MASK"'
# double curly brackets means single one for format function
f.write(
More information about the grass-commit
mailing list