[issue6556] "HOME" is not a standard environment variable on Windows

Gabriel Genellina report at bugs.python.org
Fri Aug 14 10:30:21 CEST 2009


Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:

%HOME% isn't set by Windows.
%HOMEDRIVE%%HOMEPATH% points to the user's home directory.
%USERPROFILE% is where the user's profile is stored, and may or may not 
be the same as his home directory.

%HOMEDRIVE%%HOMEPATH% should be used then, defaulting to %USERPROFILE% 
only when those variables are not set (that's unlikely, but could 
happen e.g. with the runas command)

----------
nosy: +gagenellina

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6556>
_______________________________________


More information about the Python-bugs-list mailing list