Re: [GRASS-dev] does GRASS need HOME to be defined?

2016-12-07 Thread Glynn Clements
Helmut Kudrnovsky wrote: > regarding windows, the configuration directory is defined by the %APPDATA% > variable; HOME is defined by %HOMEDRIVE% and %HOMEPATH%. > > it expands to: > > >>> import os > >>> os.getenv('HOME') > 'C:\\Users\\yourusername' > >>> os.getenv('APPDATA') >

Re: [GRASS-dev] does GRASS need HOME to be defined?

2016-11-23 Thread Helmut Kudrnovsky
Glynn Clements wrote > Helmut Kudrnovsky wrote: > >> >> anyone more insight, if %HOME% is needed in winGRASS? >> > >> >Done by Glynn in: >> >https://trac.osgeo.org/grass/changeset/37873 >> >> does GRASS need HOME to be defined? >> >> any hints? > > It's used G__home() on Unix (and as a

Re: [GRASS-dev] does GRASS need HOME to be defined?

2016-11-23 Thread Glynn Clements
Helmut Kudrnovsky wrote: > >> anyone more insight, if %HOME% is needed in winGRASS? > > > >Done by Glynn in: > >https://trac.osgeo.org/grass/changeset/37873 > > does GRASS need HOME to be defined? > > any hints? It's used G__home() on Unix (and as a fallback on Windows) and it's used for

[GRASS-dev] does GRASS need HOME to be defined?

2016-11-20 Thread Helmut Kudrnovsky
as a follow up of: https://lists.osgeo.org/pipermail/grass-dev/2016-November/083125.html [snip] >>> what happens if we don't set it in grass.py? I can't try now. >> >> tested in winGRASS7.0.5 by commenting out following line: >> >> # set HOME >> #if windows and not os.getenv('HOME'): >> #