Helmut Kudrnovsky wrote
> I had a look into the sources; I can't find a line of code where winGRASS
> changes %HOME% at the moment; but it obvious uses %USERPROFILE% as %HOME%. 

maybe just found it:

for trunk

https://trac.osgeo.org/grass/browser/grass/trunk/lib/init/grass.py#L712

712     def ensure_home():
713         """Set HOME if not set on MS Windows"""
714         if windows and not os.getenv('HOME'):
715             os.environ['HOME'] = os.path.join(os.getenv('HOMEDRIVE'),
716                                               os.getenv('HOMEPATH'))

and for the 7.0.x-line

https://trac.osgeo.org/grass/browser/grass/branches/releasebranch_7_0/lib/init/grass.py#L1338

1338    # set HOME
1339    if windows and not os.getenv('HOME'):
1340        os.environ['HOME'] = os.path.join(os.getenv('HOMEDRIVE'),
1341                                          os.getenv('HOMEPATH'))




-----
best regards
Helmut
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GRASS-can-t-find-R-packages-from-personal-library-on-Windows-tp5295771p5296458.html
Sent from the Grass - Stats mailing list archive at Nabble.com.
_______________________________________________
grass-stats mailing list
grass-stats@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-stats

Reply via email to