Skip to content

Instantly share code, notes, and snippets.

@sgherbst
Created November 6, 2017 20:19
Show Gist options
  • Select an option

  • Save sgherbst/6488c780256fca3b31e8df7d552f2841 to your computer and use it in GitHub Desktop.

Select an option

Save sgherbst/6488c780256fca3b31e8df7d552f2841 to your computer and use it in GitHub Desktop.
vvp realtime output issue
import subprocess
with subprocess.Popen('./a.out', stdout=subprocess.PIPE) as p:
for line in p.stdout:
print(line.decode(), end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment