[GRASS-dev] List of os.environ["GRASS_*"]
Pietro
peter.zamb at gmail.com
Wed Feb 24 21:42:00 PST 2016
Hi Yann,
On Wed, Feb 24, 2016 at 7:27 PM, Yann <yann.chemin at gmail.com> wrote:
> I am looking for the os.environ["GRASS_..."] that would lead me safely to
> the /etc/proj/ogr_csv
>
> anybody could tell me where I can access to the list of those GRASS_ env
> variables?
I don't know if you already fix this but you can easily get the list with:
{{{
grass-console> python -c "import os, fnmatch, pprint; pprint.pprint([k
for k in sorted(fnmatch.filter(os.environ.keys(), 'GRASS*'))])"
['GRASS_ADDON_BASE',
'GRASS_GNUPLOT',
'GRASS_HTML_BROWSER',
'GRASS_PAGER',
'GRASS_PROJSHARE',
'GRASS_PYTHON',
'GRASS_VERSION']
}}}
All the best
Pietro
More information about the grass-dev
mailing list