[GRASS-SVN] r71942 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 16 02:48:25 PST 2017
Author: martinl
Date: 2017-12-16 02:48:25 -0800 (Sat, 16 Dec 2017)
New Revision: 71942
Modified:
grass/trunk/lib/init/grass.py
Log:
explain setting environment variables in grass startup script, see #3462
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2017-12-16 06:44:18 UTC (rev 71941)
+++ grass/trunk/lib/init/grass.py 2017-12-16 10:48:25 UTC (rev 71942)
@@ -1613,9 +1613,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