[GRASS-dev] does GRASS need HOME to be defined?
Helmut Kudrnovsky
hellik at web.de
Thu Dec 8 01:45:05 PST 2016
Glynn Clements wrote
> 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')
>> 'C:\\Users\\yourusername\\AppData\\Roaming'
>>
>> would it harm if %HOME% would be extended from _C:\Users\yourusername\_
>> to
>> _C:\Users\yourusername\Documents_ in windows?
>
> Note that:
>
> 1. %HOMEPATH% isn't guaranteed to be Users\
> <username>
> .
>
> 2. The preferred way of referencing that directory is %USERPROFILE%.
>
> 3. While %USERPROFILE%\Documents is created automatically, that isn't
> guaranteed to be the location of the user's "My Documents" folder (it
> can be changed, and in networked environments is typically located on
> a file server).
>
> FWIW, the "My Documents" location can be obtained by querying the
> registry key
>
> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
> Shell Folders\Personal
>
> then expanding the result; the default value is "%USERPROFILE\Documents".
thanks for your reply.
I've let it untouched; solved it here by:
https://lists.osgeo.org/pipermail/grass-commit/2016-November/040769.html
set R_USER if %USERPROFILE%\Documents\R\ exists to catch most common cases
of private R libraries in windows
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/does-GRASS-need-HOME-to-be-defined-tp5296669p5299180.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
More information about the grass-dev
mailing list