[GRASS-SVN] r67292 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 20 14:59:54 PST 2015
Author: martinl
Date: 2015-12-20 14:59:54 -0800 (Sun, 20 Dec 2015)
New Revision: 67292
Modified:
grass/trunk/lib/init/grass.py
Log:
grass.py: fix cleaning up GRASS variables (ingore those which starts with MONITOR)
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2015-12-20 22:51:26 UTC (rev 67291)
+++ grass/trunk/lib/init/grass.py 2015-12-20 22:59:54 UTC (rev 67292)
@@ -133,8 +133,9 @@
env_curr = read_gisrc(gisrc)
env_new = {}
for k,v in env_curr.items():
- if k not in ('MONITOR', 'PID'):
- env_new[k] = v
+ if k == 'PID' or k.startswith('MONITOR'):
+ continue
+ env_new[k] = v
write_gisrc(env_new, gisrc)
More information about the grass-commit
mailing list