[GRASS-user] locating GRASS installation directories on different operating systems

Markus Neteler neteler at osgeo.org
Fri Oct 30 03:57:45 PDT 2015


On Thu, Oct 29, 2015 at 3:28 PM, Tyler Smith <tyler at plantarum.ca> wrote:
> Hi,
>
> I'm updating my Emacs grass-mode (available on MELPA, and also here:
> https://bitbucket.org/tws/grass-mode.el/wiki/Home ).
>
> Part of the configuration requires that users tell me where their grass
> binary, script and documentation files are. Since people may be using
> different versions, multiple versions, pre-packaged or compiled from
> source, I can't hard-code paths for this.

Right.

...
>  a reasonably robust way for users to find
> the information is:

Please better use this (works "everywhere", also on non-Linux
systems): ask GRASS itself where it is - of course the startup script
needs to be in the PATH:

# Linux
grass70 --config path
/usr/local/grass-7.0.2svn

# Windows
C:\>grass70.bat --config path
C:\OSGeo4W\apps\grass\grass-7.0

and so on.

HTH,
Markus


More information about the grass-user mailing list