def _WriteFile(output_path, name, content):
  path = os.path.join(output_path, name)
  with open(path, 'wb') as f:
    f.write(content)
  return path
Write given content to a file in a given directory.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/endpointscfg.py/_WriteFile