|Title:||cannot locate home directory - please set the HOMEPATH environment variable|
|Last Modified:||2011-05-09 12:55:40|
|Version Found In:||[092d763028] 2010-10-05 10:43:28 UTC|
Just seen this on Windows XP 32-bit:
C:\Users\buildbot\Reu2\bin\bga120\build>fossil pull fossil: cannot locate home directory - please set the HOMEPATH environment variable
I think you want USERPROFILE rather than HOMEPATH. I've never seen HOMEPATH on a Windows machine, but USERPROFILE has been about since Windows 2000 (or earlier).
wolfgang added on 2010-10-07 20:51:08:
HOMEPATH is only a fallback, fossil searches the following environment variables in the given order: LOCALAPPDATA -> APPDATA -> HOMEPATH
USERPROFILE might be added to this fallback chain, but i think there must be another problem on your machine, because LOCALAPPDATA and APPDATA are not found too.
One remark: i think HOMEPATH in the current implementation might not on work on some installations. HOMEPATH contains only the path (f.e. /Profile/User) and does not give you the drive (c:). So fossil should read %HOMEDRIVE%%HOMEPATH%.
anonymous claiming to be arichardson added on 2010-10-08 08:20:15:
I do have APPDATA but not LOCALAPPDATA. I don't think it can be looking for APPDATA because all sorts of programs would fail if I didn't have that defined.
I would still argue for %USERPROFILE% over %HOMEDRIVE%/%HOMEPATH% because it only references one env var instead of two, and does the exact same thing, it seems.
anonymous added on 2010-10-15 09:17:04:
anonymous claiming to be ticica added on 2011-02-01 21:41:17 UTC:
anonymous added on 2011-05-08 15:57:52 UTC: