def getProgramFilesPath():
    keyname = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion'
    currentV = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE,
                                     keyname, 0, win32con.KEY_READ)
    return win32api.RegQueryValueEx(currentV, 'ProgramFilesDir')[0]
Get the path to the Program Files folder.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/win32.py/getProgramFilesPath