[GRASS-dev] [GRASS GIS] #3462: Allow setting environment variables in grass startup script
GRASS GIS
trac at osgeo.org
Sat Dec 16 02:42:11 PST 2017
#3462: Allow setting environment variables in grass startup script
--------------------------+-------------------------
Reporter: mankoff | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Default | Version: 7.2.2
Resolution: | Keywords:
CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Comment (by martinl):
Environmental variables are loaded by load_env()
source:grass/trunk/lib/init/grass.py?rev=65585#L1710 from default config
file source:grass/trunk/lib/init/grass.py?rev=65585#L1220. In my case on
Linux (using Bash), it's `~/.grass7/bashrc`. Eg.
{{{
$ cat ~/.grass7/bashrc
export GRASS_MESSAGE_FORMAT=plain
$ GRASS_DEBUG=ON ./bin.x86_64-pc-linux-gnu/grass75 -text
...
DEBUG: Environmental variable set GRASS_MESSAGE_FORMAT=plain
> env | grep MESSAGE
GRASS_MESSAGE_FORMAT=plain
}}}
r65585 has been introduced to read only alias and other commands since
environmental variable should be already read.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3462#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list