[GRASS-SVN] r71945 - grass/branches/releasebranch_7_4/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 17 08:03:12 PST 2017
Author: neteler
Date: 2017-12-17 08:03:12 -0800 (Sun, 17 Dec 2017)
New Revision: 71945
Modified:
grass/branches/releasebranch_7_4/lib/init/grass.py
Log:
grass.py: explain setting environment variables in grass startup script, see #3462
Modified: grass/branches/releasebranch_7_4/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_4/lib/init/grass.py 2017-12-17 15:54:36 UTC (rev 71944)
+++ grass/branches/releasebranch_7_4/lib/init/grass.py 2017-12-17 16:03:12 UTC (rev 71945)
@@ -1570,9 +1570,10 @@
_("Raster MASK present"),
_("3D raster MASK present")))
- # read environmental variables
+ # read other settings (aliases, ...) since environmental variables
+ # have been already set by load_env(), see #3462
for env_file in [os.path.join(userhome, ".grass.bashrc"),
- grass_env_file]:
+ grass_env_file]:
if not os.access(env_file, os.R_OK):
continue
for line in readfile(env_file).splitlines():
More information about the grass-commit
mailing list