On Thu, 03 Aug 2006 21:55:21 +0200, Jarek Zgoda <>
declaimed the following in comp.lang.python:
> crystalattice napisa?(a):
>
> > If I want to make sure the file/directory is made in a user's home
> > directory (e.g. /home/users/path/to/file) but also compatible w/
> > Windows, how would I rewrite this (if required)?
>
> On Windows, there's no notion of user's home directory, there is a
> directory for user's profile that is treated as $HOME but isn't
> (%USERPROFILE%), something that looks like $HOME, bot in fact is not
> (%HOMEDRIVE% + %HOMEPATH%) and many other mess. Microsoft suggests using
> %USERPROFILE%, but they do not specify desired behaviour, when
> %USERPROFILE% == c:\.
There is also the registry entry
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Shell
Folders\Personal
which, on my machine, contains the value
E:\UserData\Dennis Lee Bieber\My Documents
--
Wulfraed Dennis Lee Bieber KD6MOG
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff:
web-)
HTTP://www.bestiaria.com/