[GRASS-SVN] r65903 - grass/trunk/scripts/d.out.file

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 11 23:25:42 PDT 2015


Author: martinl
Date: 2015-08-11 23:25:42 -0700 (Tue, 11 Aug 2015)
New Revision: 65903

Modified:
   grass/trunk/scripts/d.out.file/d.out.file.py
Log:
d.out.file: fix for new monitors mechanism

Modified: grass/trunk/scripts/d.out.file/d.out.file.py
===================================================================
--- grass/trunk/scripts/d.out.file/d.out.file.py	2015-08-12 06:08:49 UTC (rev 65902)
+++ grass/trunk/scripts/d.out.file/d.out.file.py	2015-08-12 06:25:42 UTC (rev 65903)
@@ -5,7 +5,7 @@
 # MODULE: d.out.file
 # AUTHOR(S): Anna Petrasova <kratochanna gmail.com>
 # PURPOSE:	Script for exporting content of monitor to graphic file
-# 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
@@ -45,7 +45,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']
         dout_cmd = 'd.out.file'
         for param, val in options.iteritems():
             if val:



More information about the grass-commit mailing list