@deprecated(Version('Twisted', 15, 3, 0))
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]

@ deprecated ( Version ( 'Twisted' , 15 , 3 , 0 ) ) 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 .