[GRASS-SVN] r63746 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 25 03:59:13 PST 2014
Author: martinl
Date: 2014-12-25 03:59:12 -0800 (Thu, 25 Dec 2014)
New Revision: 63746
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
Log:
wxGUI: reflect r63745 in standalone monitors
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-25 11:53:18 UTC (rev 63745)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-25 11:59:12 UTC (rev 63746)
@@ -517,12 +517,13 @@
# clean up GRASS env variables
env = grass.gisenv()
env_name = 'MONITOR_%s' % monName.upper()
+ unset = list()
for key in env.keys():
- if key.find(env_name) == 0:
- RunCommand('g.gisenv',
- unset = '%s' % key)
- if key == 'MONITOR' and env[key] == monName:
- RunCommand('g.gisenv',
- unset = '%s' % key)
+ if key.find(env_name) == 0 or \
+ (key == 'MONITOR' and env[key] == monName):
+ unset.append(key)
+ if unset:
+ RunCommand('g.gisenv',
+ unset = '%s' % ','.join(unset))
sys.exit(0)
More information about the grass-commit
mailing list