mirror of
https://github.com/erkin/ponysay.git
synced 2024-12-03 16:57:59 +01:00
forgot this imporant part
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
f12b2d5039
commit
a2ba3a90ff
1 changed files with 5 additions and 1 deletions
|
@ -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__':
|
||||
|
|
Loading…
Reference in a new issue