[GRASS-SVN] r73432 - grass/branches/releasebranch_7_2/scripts/i.colors.enhance

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 26 14:53:28 PDT 2018


Author: lucadelu
Date: 2018-09-26 14:53:28 -0700 (Wed, 26 Sep 2018)
New Revision: 73432

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

Modified: grass/branches/releasebranch_7_2/scripts/i.colors.enhance/i.colors.enhance.py
===================================================================
--- grass/branches/releasebranch_7_2/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:52:50 UTC (rev 73431)
+++ grass/branches/releasebranch_7_2/scripts/i.colors.enhance/i.colors.enhance.py	2018-09-26 21:53:28 UTC (rev 73432)
@@ -70,7 +70,6 @@
 import sys
 
 import grass.script as gscript
-from grass.pygrass.raster import RasterRow
 
 try:
     # new for python 2.6, in 2.5 it may be easy_install'd.
@@ -132,7 +131,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