From a2ba3a90ff94d74a24b4ba903f2a0a924cc3041e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sun, 18 Aug 2013 12:22:54 +0200 Subject: [PATCH] forgot this imporant part MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- setup/ttyponies.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/ttyponies.py b/setup/ttyponies.py index bf7d4efc..15f39af8 100755 --- a/setup/ttyponies.py +++ b/setup/ttyponies.py @@ -25,7 +25,11 @@ def generateTTY(ponydir, ttyponydir, judge): else: cmd = ['ponytool', '--import', 'ponysay', '--file', infile] + defaultinparams cmd += ['--export', 'ponysay', '--platform', 'linux', '--file', outfile] + defaultoutparams - Popen(cmd, stdin = sys.stdin, stdout = sys.stdout, stderr = sys.stderr) + proc = Popen(cmd, stdin = sys.stdin, stdout = sys.stdout, stderr = sys.stderr) + proc.wait() + if proc.returncode != 0: + print('Failed to build %s from %s with ponytool' % (outfile, infile)) + exit(1) if __name__ == '__main__':