def read_config(config_filename):
  """Read the configuration of the specified package.

  Args:
    config_filename: JSON file to read from config_dir.

  Returns:
    Dictionary read from the config.json file.

  Raises:
    ConfigJsonError: If the config.json file isn't found or it's
      malformed.
  """
  try:
    with open(config_filename) as fileobject:
      return json.load(fileobject)
  except (__HOLE__, ValueError) as error:
    raise ConfigJsonError('Unable to read %s (%s)' % (
        config_filename, str(error)))
dataset/ETHPy150Open google/fplutil/disttools/push_package.py/read_config