winpaths python module

winpaths

winpaths is a Python module for retrieving common path names for Windows. It relies only on ctypes, and retrieves the path names as Unicode strings.

winpaths is licensed under the MIT license.

Quick Links

Usage

import winpaths my_docs = winpaths.get_my_documents()

Function Specification

get_local_appdata
Local App Data folder for current user
get_appdata
App Data folder for current user
get_desktop
Desktop folder for current user
get_programs
Programs directory under Start menu
get_admin_tools
Admin Tools directory under Start menu (current user)
get_common_admin_tools
Start Menu -> Admin Tools (common)
get_common_appdata
Common App Data folder
get_common_documents
Common My Documents folder
get_cookies
Cookies folder for current user
get_history
History folder
get_internet_cache
Internet cache folder
get_my_pictures
My Pictures folder for current user
get_personal
My Documents for current user
get_my_documents
alias for get_personal
get_program_files
Program Files under root drive
get_program_files_common
Program Files -> Common Files
get_system
System directory. Use care and discretion
get_windows
Windows directory. Use care and discretion
get_favorites
Favorites folder for current user
get_startup
Startup folder under Start Menu -> Programs (current user)
get_recent
Recent files for current user