[Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

Christian Heimes lists at cheimes.de
Wed Jan 9 15:05:56 CET 2008


Jeroen Ruigrok van der Werven wrote:
> Careful with the name though. Microsoft Windows Vista did away with 'My
> Documents & Settings'. It is now C:\Users.
> 
> So you get:
> 
> C:\Users\<name>\AppData\Local\    (former Local Settings\Application Data)
> C:\Users\<name>\AppData\Roaming\  (former Application Data)
> C:\Users\<name>\Documents         (former My Documents)
> C:\Users\<name>\Music             (former My Music)
> C:\Users\<name>\Pictures          (former My Pictures)
> C:\Users\<name>\Videos            (former My Videos)

My latest version uses the SHGetFolderPathW() function from ShlObj.h.
It's the preferred way to get shell folder paths like CLSID_PERSONAL (my
documents). It's compatible with 2000 and newer (maybe even older, but
we don't support ME, NT4 or older) and works on Vista, too.

Christian


More information about the Python-Dev mailing list