Browse Source

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 years ago
parent
commit
f2af31ca25
1 changed files with 0 additions and 5 deletions
  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')])