Pārlūkot izejas kodu

d.to.rast: fix for new monitors mechanism

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65904 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 gadi atpakaļ
vecāks
revīzija
bb64e91ebb
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      scripts/d.to.rast/d.to.rast.py

+ 2 - 2
scripts/d.to.rast/d.to.rast.py

@@ -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 @@ def main():
     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: