#NEWLINE# def getProgramsMenuPath( ) : #NEWLINE# #INDENT# 'Get the path to the Programs menu.\n\n    Probably will break on non-US Windows.\n\n    @returns: the filesystem location of the common Start Menu->Programs.\n    ' #NEWLINE# if ( not platform . isWinNT ( ) ) : #NEWLINE# #INDENT# return 'C:\\Windows\\Start Menu\\Programs' #NEWLINE# #UNINDENT# keyname = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders' #NEWLINE# hShellFolders = win32api . RegOpenKeyEx ( win32con . HKEY_LOCAL_MACHINE , keyname , 0 , win32con . KEY_READ ) #NEWLINE# return win32api . RegQueryValueEx ( hShellFolders , 'Common Programs' ) [ 0 ]