Skip to content

Commit

Permalink
#940 Hotfix to add stdout flush in order to guarantee real time output
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgitgomes committed May 3, 2024
1 parent cce5f65 commit 4a11636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atom_core/src/atom_core/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pty
import re
import subprocess
import sys

from colorama import Fore, Style, Back
from pytictoc import TicToc
Expand Down Expand Up @@ -46,7 +47,7 @@ def execute(cmd, blocking=True, verbose=True, save_path=None, save_filename_addi
if output:
if verbose:
print(output, end='')
# sys.stdout.flush()
sys.stdout.flush()
stdout_data += output

# Write the stdout data to the file if stdout_file is provided
Expand Down

0 comments on commit 4a11636

Please sign in to comment.