Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app = subprocess.Popen(["./converter", "test/test.img", "output"], stdout=None, stderr=subprocess.PIPE)
- output = app.stderr.read()
- print(output.decode("utf-8"))
- crash = b"*** The program has crashed\n"
- # check if message finish with the crash msg
- if(output[len(output)-len(crash):] == crash):
- print(output.decode("utf-8"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement