Browse Source

grass.py: fix cleaning up GRASS variables (ingore those which starts with MONITOR)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67292 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 năm trước cách đây
mục cha
commit
cffbb89dae
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      lib/init/grass.py

+ 3 - 2
lib/init/grass.py

@@ -133,8 +133,9 @@ def clean_env(gisrc):
     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)