Skip to content

Commit

Permalink
Always print something to stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Dec 9, 2017
1 parent ed72116 commit c7371c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dmoj/executors/autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit c7371c0

Please sign in to comment.