The $HOME of Windows.

Markus Schaber markus at
Fri Sep 21 13:17:08 CEST 2001


Gillou <nospam at> schrub:

> This is not pure Pyhtonic problem but...
> I'm looking for a place to store user settings in a portable Python
> app. For Unix users, I use ~/.myapp.defaults
> What's the equivalent for Windoze (I don't want to use the registry).
> Knowing that the path to this "My documents" folder depends on wether
> it's Win98, Win2000 (...) and on the locale.

As far as I know, the Multi User Wins (NT, 2000, XP) and - when using a 
network profile from a Win PDC also 9X/ME - define an environment 
variable HOME that points to the users home directory.


"The strength of the Constitution lies entirely in the determination of 
each citizen to defend it. Only if every single citizen feels duty 
bound to do his share in this defense are the constitutional rights 
secure." -- Albert Einstein

More information about the Python-list mailing list