I solve that doing SET HOME=%HOMEDRIVE%%HOMEPATH%
I grew on a limited corporate environment and my home directory was a
network share.
USERPROFILE is used by Windows to store part of users profile
configuration and under certain stations the user profile is roamed
into the server.
But the sync is not instant, so if I switch computers didn't get my
modifications.
That is why I learnt to use HOMEDRIVE+HOMEPATH and that is what Ruby
also prefers first than USERPROFILE.
Here is a list of what each one of these variables are used for:
http://en.wikipedia.org/wiki/Environment_variable
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Yeah, good idea.
Ruby 1.8 explode when you do File.expand_path("~") without HOME being set.
(fixed in 1.9.1 and 1.9.2)
> I'll create a ticket for it. ENV['HOME'] is definitely looked
> for by many RubyGems as the user's home folder.
I most of the times recommend users do it manually, for several reasons:
So they know how to do it.
So it is clear why is needed.
But educational practices have been failing lately in the Windows
area, so automate might be a good option.
(Sent from my iPad)
...............................
Owen Dall
Chief Systems Architect
Barquin International
Cell: 410.991.0811