Over a million developers have joined DZone.

Find The "My Documents" Folder On Windows

DZone's Guide to

Find The "My Documents" Folder On Windows

· ·
Free Resource

from win32com.shell import shell
df = shell.SHGetDesktopFolder()
pidl = df.ParseDisplayName(0, None,  
mydocs = shell.SHGetPathFromIDList(pidl)

Copied from Kevin Dangoor's blog here

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}