def GetClientConfig(filename):
 config_lib.SetPlatformArchContext()
 config_lib.ParseConfigCommandLine()
 context = list(config_lib.CONFIG.context)
 context.append('Client Context')
 deployer = build.ClientRepacker()
 config_data = deployer.GetClientConfig(context, validate=True, deploy_timestamp=False)
 builder = build.ClientBuilder()
 with open(filename, 'w') as fd:
  fd.write(config_data)
  builder.WriteBuildYaml(fd, build_timestamp=False)

def GetClientConfig ( filename ) : config_lib . SetPlatformArchContext ( ) config_lib . ParseConfigCommandLine ( ) context = list ( config_lib . CONFIG . context ) context . append ( 'Client Context' ) deployer = build . ClientRepacker ( ) config_data = deployer . GetClientConfig ( context , validate = True , deploy_timestamp = False ) builder = build . ClientBuilder ( ) with open ( filename , 'w' ) as fd : fd . write ( config_data ) builder . WriteBuildYaml ( fd , build_timestamp = False )
write client config to filename .