aqt.winpaths

Contents

aqt.winpaths#

System File Locations Retrieves common system path names on Windows XP/Vista Depends only on ctypes, and retrieves path locations in Unicode

Attributes#

Exceptions#

WinPathsException

Common base class for all non-exit exceptions.

Classes#

PathConstants

Define constants here to avoid dependency on shellcon.

Functions#

get_local_appdata()

get_appdata()

get_desktop()

get_programs()

current user -> Start menu -> Programs

get_admin_tools()

current user -> Start menu -> Programs -> Admin tools

get_common_admin_tools()

all users -> Start menu -> Programs -> Admin tools

get_common_appdata()

get_common_documents()

get_cookies()

get_history()

get_internet_cache()

get_my_pictures()

Get the user's My Pictures folder

get_personal()

AKA 'My Documents'

get_program_files()

get_program_files_common()

get_system()

Use with care and discretion

get_windows()

Use with care and discretion

get_favorites()

get_startup()

current user -> start menu -> programs -> startup

get_recent()

Module Contents#

class aqt.winpaths.PathConstants#

Define constants here to avoid dependency on shellcon. Put it in a class to avoid polluting namespace

CSIDL_DESKTOP = 0#
CSIDL_PROGRAMS = 2#
CSIDL_PERSONAL = 5#
CSIDL_FAVORITES = 6#
CSIDL_STARTUP = 7#
CSIDL_RECENT = 8#
CSIDL_SENDTO = 9#
CSIDL_BITBUCKET = 10#
CSIDL_STARTMENU = 11#
CSIDL_MYDOCUMENTS = 12#
CSIDL_MYMUSIC = 13#
CSIDL_MYVIDEO = 14#
CSIDL_DESKTOPDIRECTORY = 16#
CSIDL_DRIVES = 17#
CSIDL_NETWORK = 18#
CSIDL_NETHOOD = 19#
CSIDL_FONTS = 20#
CSIDL_TEMPLATES = 21#
CSIDL_COMMON_STARTMENU = 22#
CSIDL_COMMON_PROGRAMS = 23#
CSIDL_COMMON_STARTUP = 24#
CSIDL_COMMON_DESKTOPDIRECTORY = 25#
CSIDL_APPDATA = 26#
CSIDL_PRINTHOOD = 27#
CSIDL_LOCAL_APPDATA = 28#
CSIDL_ALTSTARTUP = 29#
CSIDL_COMMON_ALTSTARTUP = 30#
CSIDL_COMMON_FAVORITES = 31#
CSIDL_INTERNET_CACHE = 32#
CSIDL_COOKIES = 33#
CSIDL_HISTORY = 34#
CSIDL_COMMON_APPDATA = 35#
CSIDL_WINDOWS = 36#
CSIDL_SYSTEM = 37#
CSIDL_PROGRAM_FILES = 38#
CSIDL_MYPICTURES = 39#
CSIDL_PROFILE = 40#
CSIDL_SYSTEMX86 = 41#
CSIDL_PROGRAM_FILESX86 = 42#
CSIDL_PROGRAM_FILES_COMMON = 43#
CSIDL_PROGRAM_FILES_COMMONX86 = 44#
CSIDL_COMMON_TEMPLATES = 45#
CSIDL_COMMON_DOCUMENTS = 46#
CSIDL_COMMON_ADMINTOOLS = 47#
CSIDL_ADMINTOOLS = 48#
CSIDL_CONNECTIONS = 49#
CSIDL_COMMON_MUSIC = 53#
CSIDL_COMMON_PICTURES = 54#
CSIDL_COMMON_VIDEO = 55#
CSIDL_RESOURCES = 56#
CSIDL_RESOURCES_LOCALIZED = 57#
CSIDL_CDBURN_AREA = 59#
CSIDL_COMPUTERSNEARME = 61#
exception aqt.winpaths.WinPathsException#

Bases: Exception

Common base class for all non-exit exceptions.

aqt.winpaths.get_local_appdata()#
aqt.winpaths.get_appdata()#
aqt.winpaths.get_desktop()#
aqt.winpaths.get_programs()#

current user -> Start menu -> Programs

aqt.winpaths.get_admin_tools()#

current user -> Start menu -> Programs -> Admin tools

aqt.winpaths.get_common_admin_tools()#

all users -> Start menu -> Programs -> Admin tools

aqt.winpaths.get_common_appdata()#
aqt.winpaths.get_common_documents()#
aqt.winpaths.get_cookies()#
aqt.winpaths.get_history()#
aqt.winpaths.get_internet_cache()#
aqt.winpaths.get_my_pictures()#

Get the user’s My Pictures folder

aqt.winpaths.get_personal()#

AKA ‘My Documents’

aqt.winpaths.get_my_documents#
aqt.winpaths.get_program_files()#
aqt.winpaths.get_program_files_common()#
aqt.winpaths.get_system()#

Use with care and discretion

aqt.winpaths.get_windows()#

Use with care and discretion

aqt.winpaths.get_favorites()#
aqt.winpaths.get_startup()#

current user -> start menu -> programs -> startup

aqt.winpaths.get_recent()#