def reload(script, input, output):
    """
    reloads the generator script when the script files
    or the input files changes
    """
    script = Path(script).expand().abspath()
    output = Path(output).expand().abspath()
    input = input if isinstance(input, (list, tuple)) else [input]
    output.makedirs_p()
    _script_reload(script, input, output)