Skip to content

Commit

Permalink
Fixed flush upon exit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert van Renesse committed Dec 27, 2023
1 parent 4c6def1 commit e25eb94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harmony_model_checker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def handle_hco(ns, output_files):
print("open " + url + " for detailed information, or use the HarmonyGUI", file=sys.stderr)
if not disable_browser:
webbrowser.open(url)
os._exit(0) # exit as minify may still be running
# exit as minify may still be running
print(flush=True)
print(file=sys.stderr, flush=True)
os._exit(0)

def handle_version(_: argparse.Namespace):
print("Version:", harmony_model_checker.__package__,
Expand Down

0 comments on commit e25eb94

Please sign in to comment.