瀏覽代碼

variables are already exported in the working environment for that grass session, no need to save them to the mapset's .bashrc file too. by doing that it was overwriting any GRASS_ enviro vars you'd manually set in ~/.grass.bashrc (e.g. GRASS_HTML_BROWSER)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50175 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 13 年之前
父節點
當前提交
f2af31ca25
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      lib/init/grass.py

+ 0 - 5
lib/init/grass.py

@@ -852,11 +852,6 @@ def bash_startup():
     f.write("export PATH=\"%s\"\n" % os.getenv('PATH'))
     f.write("export HOME=\"%s\"\n" % userhome) # restore user home path
     
-    for env, value in os.environ.iteritems():
-        if env.find('GRASS_') < 0:
-            continue
-        f.write("export %s=\"%s\"\n" % (env, value))
-    
     f.close()
     
     exit_val = call([gfile("etc", "run"), os.getenv('SHELL')])