[GRASS-SVN] r65584 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 13 22:41:36 PDT 2015
Author: hcho
Date: 2015-07-13 22:41:36 -0700 (Mon, 13 Jul 2015)
New Revision: 65584
Modified:
grass/trunk/lib/init/grass.py
Log:
grass.py: reverted part of r65307 to allow aliases and custom prompt in ~/.grass7/bashrc again
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2015-07-13 12:36:56 UTC (rev 65583)
+++ grass/trunk/lib/init/grass.py 2015-07-14 05:41:36 UTC (rev 65584)
@@ -1446,6 +1446,8 @@
path = os.path.join(userhome, ".grass.bashrc") # left for backward compatibility
if os.access(path, os.R_OK):
f.write(readfile(path) + '\n')
+ if os.access(grass_env_file, os.R_OK):
+ f.write(readfile(grass_env_file) + '\n')
f.write("export PATH=\"%s\"\n" % os.getenv('PATH'))
f.write("export HOME=\"%s\"\n" % userhome) # restore user home path
More information about the grass-commit
mailing list