|
@@ -1446,6 +1446,8 @@ PROMPT_COMMAND=grass_prompt\n""" % (_("2D and 3D raster MASKs present"),
|
|
|
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
|