Преглед на файлове

d.out.file: fix for new monitors mechanism

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65903 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa преди 9 години
родител
ревизия
d2ae7f290f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      scripts/d.out.file/d.out.file.py

+ 2 - 2
scripts/d.out.file/d.out.file.py

@@ -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 @@ 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']
         dout_cmd = 'd.out.file'
         for param, val in options.iteritems():
             if val: