From c7371c017b2f8688b674f789d55e10583f84ce4f Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 9 Dec 2017 16:55:49 -0500 Subject: [PATCH] Always print something to stdout. --- dmoj/executors/autoconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmoj/executors/autoconfig.py b/dmoj/executors/autoconfig.py index bda31af2c..33e537140 100644 --- a/dmoj/executors/autoconfig.py +++ b/dmoj/executors/autoconfig.py @@ -93,13 +93,14 @@ def main(): if result: if not args.silent and sys.stdout.isatty(): print(ansi_style('#ansi[Configuration result](green|bold|underline):'), file=sys.stderr) - print(yaml.safe_dump({'runtime': result}, default_flow_style=False).rstrip()) else: print(ansi_style('#ansi[No runtimes configured.](red|bold)'), file=sys.__stderr__) if not args.verbose: print(ansi_style('Run #ansi[%s -V](|underline) to see why this is the case.') % (parser.prog,), file=sys.__stderr__) + print(yaml.safe_dump({'runtime': result}, default_flow_style=False).rstrip()) + if __name__ == '__main__': main()