Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
f2af31ca25
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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')])