def call(args=None): with capture_output() as (out, err): try: return_code = operon_main(["operon.py"] + args) except SystemExit as e: return_code = e.code return (return_code, out.getvalue(), err.getvalue())
def call(args): args = [path2fsn(a) for a in args] with capture_output() as (out, err): try: return_code = operon_main([path2fsn("operon.py")] + args) except SystemExit as e: return_code = e.code return (return_code, out.getvalue(), err.getvalue())
def call(args=None): with capture_output() as (out, err): try: return_code = operon_main(["operon.py"] + args) except SystemExit, e: return_code = e.code