소스 검색

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')])