dautil.IO.stdio module

dautil.IO.stdio.redirect_stdout_stderr(f)[source]

a decorator to add keyword stdout, stderr to the function args if stdout, stderr is not None, redirect the stdout, stderr to the respective files.