[GRASS-SVN] r64469 - in grass/trunk/scripts: d.frame d.redraw d.what.rast d.what.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 4 13:15:25 PST 2015


Author: martinl
Date: 2015-02-04 13:15:25 -0800 (Wed, 04 Feb 2015)
New Revision: 64469

Modified:
   grass/trunk/scripts/d.frame/d.frame.py
   grass/trunk/scripts/d.redraw/d.redraw.py
   grass/trunk/scripts/d.what.rast/d.what.rast.py
   grass/trunk/scripts/d.what.vect/d.what.vect.py
Log:
update scrips to use `d.mon -g`


Modified: grass/trunk/scripts/d.frame/d.frame.py
===================================================================
--- grass/trunk/scripts/d.frame/d.frame.py	2015-02-04 21:11:58 UTC (rev 64468)
+++ grass/trunk/scripts/d.frame/d.frame.py	2015-02-04 21:15:25 UTC (rev 64469)
@@ -93,7 +93,7 @@
 
 # check if monitor file exists
 def check_monitor_file(monitor, ftype='env'):
-    mfile = parse_command('d.info', flags='s').get(ftype, None)
+    mfile = parse_command('d.mon', flags='g').get(ftype, None)
     if mfile is None or not os.path.isfile(mfile):
         fatal(_("Unable to get monitor info (no %s found)") % var)
     

Modified: grass/trunk/scripts/d.redraw/d.redraw.py
===================================================================
--- grass/trunk/scripts/d.redraw/d.redraw.py	2015-02-04 21:11:58 UTC (rev 64468)
+++ grass/trunk/scripts/d.redraw/d.redraw.py	2015-02-04 21:15:25 UTC (rev 64469)
@@ -31,7 +31,7 @@
     if not mon:
         grass.fatal(_("No graphics device selected. Use d.mon to select graphics device."))
 
-    monCmd = grass.parse_command('d.info', flags='s').get('cmd', None)
+    monCmd = grass.parse_command('d.mon', flags='g').get('cmd', None)
     if not monCmd or not os.path.isfile(monCmd):
         grass.fatal(_("Unable to open file '%s'") % monCmd)
 

Modified: grass/trunk/scripts/d.what.rast/d.what.rast.py
===================================================================
--- grass/trunk/scripts/d.what.rast/d.what.rast.py	2015-02-04 21:11:58 UTC (rev 64468)
+++ grass/trunk/scripts/d.what.rast/d.what.rast.py	2015-02-04 21:15:25 UTC (rev 64469)
@@ -30,7 +30,7 @@
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()
     if 'MONITOR' in gisenv:
-        cmd_file = gcore.parse_command('d.info', flags='s').get('cmd', None)
+        cmd_file = gcore.parse_command('d.mon', flags='g').get('cmd', None)
         if not cmd_file:
             gcore.fatal(_("Unable to open file '%s'") % cmd_file)
         dout_cmd = 'd.what.rast'

Modified: grass/trunk/scripts/d.what.vect/d.what.vect.py
===================================================================
--- grass/trunk/scripts/d.what.vect/d.what.vect.py	2015-02-04 21:11:58 UTC (rev 64468)
+++ grass/trunk/scripts/d.what.vect/d.what.vect.py	2015-02-04 21:15:25 UTC (rev 64469)
@@ -30,7 +30,7 @@
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()
     if 'MONITOR' in gisenv:
-        cmd_file = gcore.parse_command('d.info', flags='s').get('cmd', None)
+        cmd_file = gcore.parse_command('d.mon', flags='g').get('cmd', None)
         if not cmd_file:
             gcore.fatal(_("Unable to open file '%s'") % cmd_file)
         dout_cmd = 'd.what.vect'



More information about the grass-commit mailing list