mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Exit properly when callind moses with --show-weights
This commit is contained in:
parent
c30a4a5611
commit
c8749aa69a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user