Source code for quixote.build.utils
import quixote.build.output as output
[docs]def setup_function(f):
"""
Decorator used for functions that generate commands for the builder
:param f: the function to wrap
"""
def run(*args, **kwargs):
output.get_output().append(f(*args, **kwargs))
run.__doc__ = f.__doc__
return run