tools/cr/cr/base/client.py
def ReadGClient():
  """Loads the .gclient configuration for the current client.

  This will load from CR_CLIENT_PATH.

  Returns:
    The dict of values set in the .gclient file.

  """
  # Now attempt to load and parse the .gclient file
  result = {}
  try:
    gclient_file = cr.context.Substitute(
        os.path.join('{CR_CLIENT_PATH}', GCLIENT_FILENAME))
    with open(gclient_file, 'r') as spec_file:
      # matching the behaviour of gclient, so pylint: disable=exec-used
      exec(spec_file.read(), {}, result)
  except IOError:
    # no .gclient file, skip it
    pass
  return result
Loads the .gclient configuration for the current client.

  This will load from CR_CLIENT_PATH.

  Returns:
    The dict of values set in the .gclient file.

  
Loads the .gclient configuration for the current client.
This will load from CR_CLIENT_PATH.
Loads the . gclient configuration for the current client . This will load from CR_CLIENT_PATH .
def ReadGClient():
  result = {}
  try:
    gclient_file = cr.context.Substitute(
        os.path.join('{CR_CLIENT_PATH}', GCLIENT_FILENAME))
    with open(gclient_file, 'r') as spec_file:
      exec(spec_file.read(), {}, result)
  except IOError:
    pass
  return result
def ReadGClient ( ) : result = { } try : gclient_file = cr . context . Substitute ( os . path . join ( '{CR_CLIENT_PATH}' , GCLIENT_FILENAME ) ) with open ( gclient_file , 'r' ) as spec_file : exec ( spec_file . read ( ) , { } , result ) except IOError : pass return result
Loads the .gclient configuration for the current client.
Loads the . gclient configuration for the current client .
"""Loads the .gclient configuration for the current client.

  This will load from CR_CLIENT_PATH.

  Returns:
    The dict of values set in the .gclient file.

  """ # Now attempt to load and parse the .gclient file # matching the behaviour of gclient, so pylint: disable=exec-used # no .gclient file, skip it
The dict of values set in the .gclient file.
The dict of values set in the . gclient file .