tools/cr/cr/base/client.py
def LoadConfig():
  """Loads the client configuration for the given context.

  This will load configuration if present from CR_CLIENT_PATH and then
  CR_BUILD_DIR.

  Returns:
    True if configuration was fully loaded.

  """
  # Load the root config, will help set default build dir
  client_config_dir = _MigrateAndGetConfigDir(use_build_dir=False)
  cr.auto.client.__path__.append(client_config_dir)
  cr.loader.Scan()
  # Now load build dir config
  build_config_dir = _MigrateAndGetConfigDir(use_build_dir=True)
  cr.auto.build.__path__.append(build_config_dir)
  cr.loader.Scan()

  if not hasattr(cr.auto.build, 'config'):
    return False

  cr.context.derived.Set(CR_BUILD_CONFIG_PATH=_GetConfigFile(build_config_dir))
  return True
Loads the client configuration for the given context.

  This will load configuration if present from CR_CLIENT_PATH and then
  CR_BUILD_DIR.

  Returns:
    True if configuration was fully loaded.

  
Loads the client configuration for the given context.
This will load configuration if present from CR_CLIENT_PATH and then
CR_BUILD_DIR.
Loads the client configuration for the given context . This will load configuration if present from CR_CLIENT_PATH and then CR_BUILD_DIR .
def LoadConfig():
  client_config_dir = _MigrateAndGetConfigDir(use_build_dir=False)
  cr.auto.client.__path__.append(client_config_dir)
  cr.loader.Scan()
  build_config_dir = _MigrateAndGetConfigDir(use_build_dir=True)
  cr.auto.build.__path__.append(build_config_dir)
  cr.loader.Scan()
  if not hasattr(cr.auto.build, 'config'):
    return False
  cr.context.derived.Set(CR_BUILD_CONFIG_PATH=_GetConfigFile(build_config_dir))
  return True
def LoadConfig ( ) : client_config_dir = _MigrateAndGetConfigDir ( use_build_dir = False ) cr . auto . client . __path__ . append ( client_config_dir ) cr . loader . Scan ( ) build_config_dir = _MigrateAndGetConfigDir ( use_build_dir = True ) cr . auto . build . __path__ . append ( build_config_dir ) cr . loader . Scan ( ) if not hasattr ( cr . auto . build , 'config' ) : return False cr . context . derived . Set ( CR_BUILD_CONFIG_PATH = _GetConfigFile ( build_config_dir ) ) return True
Loads the client configuration for the given context.
Loads the client configuration for the given context .
"""Loads the client configuration for the given context.

  This will load configuration if present from CR_CLIENT_PATH and then
  CR_BUILD_DIR.

  Returns:
    True if configuration was fully loaded.

  """ # Load the root config, will help set default build dir # Now load build dir config
True if configuration was fully loaded.
True if configuration was fully loaded .