Exit properly when callind moses with --show-weights

This commit is contained in:
Michael Denkowski 2016-03-23 16:34:18 -04:00
parent c30a4a5611
commit c8749aa69a

View File

@ -232,7 +232,7 @@ def main(argv):
if show_weights:
sys.stdout.write(subprocess.check_output(cmd))
sys.stdout.flush()
sys.exit(0)
return
# Check inputs
if not (len(cmd) > 0 and moses_ini):