def save_license(license_code):
  desc = _get_license_description(license_code)
  fname = "LICENSE"
  if sys.platform == "win32":
    fname += ".txt"  # Windows and file exts
  with open(os.path.join(os.getcwd(), fname), "w") as afile:
    afile.write(desc)
Grab license, save to LICENSE/LICENSE.txt file
dataset/ETHPy150Open architv/harvey/harvey/harvey.py/save_license