[GRASS-SVN] r65308 - grass/trunk/display/d.mon

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 22 01:42:12 PDT 2015


Author: martinl
Date: 2015-05-22 01:42:12 -0700 (Fri, 22 May 2015)
New Revision: 65308

Modified:
   grass/trunk/display/d.mon/render_cmd.py
Log:
d.mon: write frame info to cmd line (allows zooming in wx0 monitors)

Modified: grass/trunk/display/d.mon/render_cmd.py
===================================================================
--- grass/trunk/display/d.mon/render_cmd.py	2015-05-21 21:45:19 UTC (rev 65307)
+++ grass/trunk/display/d.mon/render_cmd.py	2015-05-22 08:42:12 UTC (rev 65308)
@@ -53,6 +53,9 @@
     if fd is None:
         grass.fatal("Unable to open file '{}'".format(cmd_file))
     if mode == 'a':
+        frame = os.getenv('GRASS_RENDER_FRAME', None)
+        if frame:
+            fd.write('# GRASS_RENDER_FRAME={}\n'.format(frame))
         if mapfile:
             fd.write('# GRASS_RENDER_FILE={}\n'.format(mapfile))
         fd.write(' '.join(gtask.cmdtuple_to_list(cmd)))



More information about the grass-commit mailing list