remoting/host/linux/configure_url_forwarder.py
def load_host_settings_file() -> dict[str, str]:
  """Loads and returns the host settings JSON."""

  if not os.path.isfile(HOST_SETTINGS_PATH):
    return {}
  with open(HOST_SETTINGS_PATH, 'r') as settings_file:
    try:
      return json.load(settings_file)
    except JSONDecodeError as e:
      print('Failed to load JSON file:', e, file=sys.stderr)
      return {}
Loads and returns the host settings JSON.
Loads and returns the host settings JSON.
Loads and returns the host settings JSON .
def load_host_settings_file() -> dict[str, str]:
  if not os.path.isfile(HOST_SETTINGS_PATH):
    return {}
  with open(HOST_SETTINGS_PATH, 'r') as settings_file:
    try:
      return json.load(settings_file)
    except JSONDecodeError as e:
      print('Failed to load JSON file:', e, file=sys.stderr)
      return {}
def load_host_settings_file ( ) -> dict [ str , str ] : if not os . path . isfile ( HOST_SETTINGS_PATH ) : return { } with open ( HOST_SETTINGS_PATH , 'r' ) as settings_file : try : return json . load ( settings_file ) except JSONDecodeError as e : print ( 'Failed to load JSON file:' , e , file = sys . stderr ) return { }
Loads and returns the host settings JSON.
Loads and returns the host settings JSON .
"""Loads and returns the host settings JSON."""