Skip to content

Instantly share code, notes, and snippets.

@JohannesBuchner
Last active December 24, 2015 16:19
Show Gist options
  • Save JohannesBuchner/6827676 to your computer and use it in GitHub Desktop.
Save JohannesBuchner/6827676 to your computer and use it in GitHub Desktop.
launch process
import subprocess
def runscript(name):
args = ('./interact', name,)
p = subprocess.Popen(args)
# p.communicate() # set stdin/stdout/stderr=subprocess.PIPE
if p.wait() != 0:
raise Exception('return value of startup script was non-zero')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment