[GRASS-SVN] r65904 - grass/trunk/scripts/d.to.rast

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 11 23:52:54 PDT 2015


Author: martinl
Date: 2015-08-11 23:52:54 -0700 (Tue, 11 Aug 2015)
New Revision: 65904

Modified:
   grass/trunk/scripts/d.to.rast/d.to.rast.py
Log:
d.to.rast: fix for new monitors mechanism


Modified: grass/trunk/scripts/d.to.rast/d.to.rast.py
===================================================================
--- grass/trunk/scripts/d.to.rast/d.to.rast.py	2015-08-12 06:25:42 UTC (rev 65903)
+++ grass/trunk/scripts/d.to.rast/d.to.rast.py	2015-08-12 06:52:54 UTC (rev 65904)
@@ -5,7 +5,7 @@
 # MODULE:    d.to.rast
 # AUTHOR(S): Anna Petrasova <kratochanna gmail.com>
 # PURPOSE:	 Script for exporting content of monitor to raster map
-# COPYRIGHT: (C) 2014 by the GRASS Development Team
+# COPYRIGHT: (C) 2014-2015 by the GRASS Development Team
 #
 #		This program is free software under the GNU General
 #		Public License (>=v2). Read the file COPYING that
@@ -30,7 +30,7 @@
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()
     if 'MONITOR' in gisenv:
-        cmd_file = gisenv['MONITOR_{monitor}_CMDFILE'.format(monitor=gisenv['MONITOR'].upper())]
+        cmd_file = gcore.parse_command('d.mon', flags='g')['cmd']
         d_cmd = 'd.to.rast'
         for param, val in options.iteritems():
             if val:



More information about the grass-commit mailing list