def _write_file(path, content):
    _mkdir(os.path.dirname(path))
    try:
        with open(path, 'w') as fp:
            fp.write(content)
    except __HOLE__ as e:
        log.error("Could not write to export file")
        raise CommandError(e)
dataset/ETHPy150Open nickstenning/honcho/honcho/command.py/_write_file