[GRASS-SVN] r73429 - grass/trunk/scripts/i.colors.enhance

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 26 14:50:42 PDT 2018


Author: lucadelu
Date: 2018-09-26 14:50:42 -0700 (Wed, 26 Sep 2018)
New Revision: 73429

Modified:
   grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py
Log:
i.color.enhance: remove pygrass dependency

Modified: grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py
===================================================================
--- grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:50:31 UTC (rev 73428)
+++ grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:50:42 UTC (rev 73429)
@@ -70,7 +70,6 @@
 import sys
 
 import grass.script as gscript
-from grass.pygrass.raster import RasterRow
 
 # i18N
 import os
@@ -137,7 +136,8 @@
 
     check = True
     for m in [red, green, blue]:
-        if not RasterRow(m).exist():
+        ex = gscript.find_file(m)
+        if ex['name'] == '':
             check = False
             gscript.warning("Raster map <{}> not found ".format(m))
     if not check:



More information about the grass-commit mailing list