parameters: ()
return_statement: return val
docstring: Get the location of the program files directory
      Returns
      -------
docstring_summary: Get the location of the program files directory
      Returns
      -------
docstring_tokens: Get the location of the program files directory Returns -------
function: def get_program_files_dir():
      """
      Get the location of the program files directory
      Returns
      -------
  
      """
      # Now see if we can look in the registry...
      val = ''
      if SCons.Util.can_read_reg:
          try:
              # Look for Windows Program Files directory
              k=SCons.Util.RegOpenKeyEx(SCons.Util.hkey_mod.HKEY_LOCAL_MACHINE,
                                        'Software\\Microsoft\\Windows\\CurrentVersion')
              val, tok = SCons.Util.RegQueryValueEx(k, 'ProgramFilesDir')
          except SCons.Util.RegError:
              val = ''
  
      if val == '':
          # A reasonable default if we can't read the registry
          # (Actually, it's pretty reasonable even if we can :-)
          val = os.path.join(os.path.dirname(get_system_root()),"Program Files")
  
      return val
function_tokens: def get_program_files_dir ( ) : # Now see if we can look in the registry... val = '' if SCons . Util . can_read_reg : try : # Look for Windows Program Files directory k = SCons . Util . RegOpenKeyEx ( SCons . Util . hkey_mod . HKEY_LOCAL_MACHINE , 'Software\\Microsoft\\Windows\\CurrentVersion' ) val , tok = SCons . Util . RegQueryValueEx ( k , 'ProgramFilesDir' ) except SCons . Util . RegError : val = '' if val == '' : # A reasonable default if we can't read the registry # (Actually, it's pretty reasonable even if we can :-) val = os . path . join ( os . path . dirname ( get_system_root ( ) ) , "Program Files" ) return val