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

  This will write to CR_CLIENT_PATH.

  """
  gclient_file = cr.context.Substitute(
      os.path.join('{CR_CLIENT_PATH}', GCLIENT_FILENAME))
  spec = '\n'.join('%s = %s' % (key, pprint.pformat(value))
      for key,value in cr.context.gclient.items())
  if cr.context.dry_run:
    print('Write the following spec to', gclient_file)
    print(spec)
  else:
    with open(gclient_file, 'w') as spec_file:
      spec_file.write(spec)
Writes the .gclient configuration for the current client.

  This will write to CR_CLIENT_PATH.

  
Writes the .gclient configuration for the current client.
This will write to CR_CLIENT_PATH.
Writes the . gclient configuration for the current client . This will write to CR_CLIENT_PATH .
def WriteGClient():
  gclient_file = cr.context.Substitute(
      os.path.join('{CR_CLIENT_PATH}', GCLIENT_FILENAME))
  spec = '\n'.join('%s = %s' % (key, pprint.pformat(value))
      for key,value in cr.context.gclient.items())
  if cr.context.dry_run:
    print('Write the following spec to', gclient_file)
    print(spec)
  else:
    with open(gclient_file, 'w') as spec_file:
      spec_file.write(spec)
def WriteGClient ( ) : gclient_file = cr . context . Substitute ( os . path . join ( '{CR_CLIENT_PATH}' , GCLIENT_FILENAME ) ) spec = '\n' . join ( '%s = %s' % ( key , pprint . pformat ( value ) ) for key , value in cr . context . gclient . items ( ) ) if cr . context . dry_run : print ( 'Write the following spec to' , gclient_file ) print ( spec ) else : with open ( gclient_file , 'w' ) as spec_file : spec_file . write ( spec )
Writes the .gclient configuration for the current client.
Writes the . gclient configuration for the current client .
"""Writes the .gclient configuration for the current client.

  This will write to CR_CLIENT_PATH.

  """