def __windows_get_dir(win_dir):
from win32com.shell import shell
df = shell.SHGetDesktopFolder()
pidl = df.ParseDisplayName(0, None,
'::%s' % __WINDOWS_FOLDER_GUIDS[win_dir])[1]
return shell.SHGetPathFromIDList(pidl)
评论列表
文章目录