[GRASS-SVN] r73430 - grass/branches/releasebranch_7_6/scripts/i.colors.enhance

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 26 14:52:02 PDT 2018


Author: lucadelu
Date: 2018-09-26 14:52:02 -0700 (Wed, 26 Sep 2018)
New Revision: 73430

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

Modified: grass/branches/releasebranch_7_6/scripts/i.colors.enhance/i.colors.enhance.py
===================================================================
--- grass/branches/releasebranch_7_6/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:50:42 UTC (rev 73429)
+++ grass/branches/releasebranch_7_6/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:52:02 UTC (rev 73430)
@@ -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