How to find Windows "Application data" directory??

Trent Mick trentm at ActiveState.com
Wed Jun 29 18:11:05 CEST 2005


[Paul Rubin wrote]
> "Rune Strand" <rune.strand at gmail.com> writes:
> > You have the environment variable APPDATA. You can access it with
> > os.environ().
> 
> Thanks!!!!!!  Wow, I'd been hacking away at much messier approaches
> than that.  It's actually os.environ['APPDATA'] ;-)

Note that the APPDATA environment variable is only there on *some* of
the Windows flavours. It is there on Win2k and WinXP. It is not there on
WinME. Dunno about Win95, Win98, WinNT... but you may not care about
those old guys.

Cheers,
Trent

-- 
Trent Mick
TrentM at ActiveState.com



More information about the Python-list mailing list