def delete_file_on_return(path):
def decorator(func):<EOL><INDENT>@functools.wraps(func)<EOL>def wrapper(*args, **kwds):<EOL><INDENT>try:<EOL><INDENT>return func(*args, **kwds)<EOL><DEDENT>finally:<EOL><INDENT>try:<EOL><INDENT>os.remove(path)<EOL><DEDENT>except (IOError, OSError):<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>return wrapper<EOL><DEDENT>return decorator<EOL>
Decorator to run function at `path`.

:type path: str
:arg path: relative path from repository root (e.g., 'pyqode' or 'test').