Last active
December 24, 2015 16:19
-
-
Save JohannesBuchner/6827676 to your computer and use it in GitHub Desktop.
launch process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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