[GRASS-SVN] r73431 - grass/branches/releasebranch_7_4/scripts/i.colors.enhance
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 26 14:52:50 PDT 2018
Author: lucadelu
Date: 2018-09-26 14:52:50 -0700 (Wed, 26 Sep 2018)
New Revision: 73431
Modified:
grass/branches/releasebranch_7_4/scripts/i.colors.enhance/i.colors.enhance.py
Log:
i.color.enhance: remove pygrass dependency
Modified: grass/branches/releasebranch_7_4/scripts/i.colors.enhance/i.colors.enhance.py
===================================================================
--- grass/branches/releasebranch_7_4/scripts/i.colors.enhance/i.colors.enhance.py 2018-09-26 21:52:02 UTC (rev 73430)
+++ grass/branches/releasebranch_7_4/scripts/i.colors.enhance/i.colors.enhance.py 2018-09-26 21:52:50 UTC (rev 73431)
@@ -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