[GRASS-dev] python function to get the path to the GRASS configuration directory

Anna Petrášová kratochanna at gmail.com
Fri Feb 12 07:01:20 PST 2016


On Fri, Feb 12, 2016 at 4:43 AM, Pietro <peter.zamb at gmail.com> wrote:

> Dear devs,
>
> The GRASS's configuration directory change from grass version and
> depending by OS in use as explained here:
>
>
> https://grasswiki.osgeo.org/wiki/GRASS_configuration_files_in_home_directory
>
> I wonder if already exist somewhere C/Python API a function that
> return the right path.
>

In gui/wxpython/core/utils:
https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/utils.py#L795

But we should consider moving it into grass/script/utils.py or similar.

Anna


>
> Any idea?
> All the best
>
> Pietro
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160212/05863700/attachment-0001.html>


More information about the grass-dev mailing list