Skip to content

Instantly share code, notes, and snippets.

@saevarb
Created October 13, 2014 18:44
Show Gist options
  • Save saevarb/fa7b4f055791239013fd to your computer and use it in GitHub Desktop.
Save saevarb/fa7b4f055791239013fd to your computer and use it in GitHub Desktop.
import os
l = []
# Hvis du gør noget i denne retning
for i in range(10):
print(i)
foo = os.popen("trackmania command etc")
l.append((i, foo))
for (i, p) in l:
# Når du så her til?
print("Reading from pipe " + str(i))
print(p.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment