def get_base_href_html(full_url):
    base_url = get_base_url(full_url)
    return '<base href="%s"></base>' % base_url
writes <value> to filename, making sure to close the file explicitly on exit.
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/core/log_helper.py/get_base_href_html--crossover with--dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/fileutils.py/write_file