mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
				synced 2025-10-31 10:32:44 +00:00 
			
		
		
		
	Return the returncode
This commit is contained in:
		| @@ -4,6 +4,7 @@ | |||||||
| from argparse import ArgumentParser | from argparse import ArgumentParser | ||||||
| import os | import os | ||||||
| import subprocess | import subprocess | ||||||
|  | import sys | ||||||
|  |  | ||||||
| CONTAINER_IMAGE = 'gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:1.0.0' | CONTAINER_IMAGE = 'gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:1.0.0' | ||||||
| CONTAINER_INPUT_DIR = '/input' | CONTAINER_INPUT_DIR = '/input' | ||||||
| @@ -34,4 +35,4 @@ if args.log_dir is not None: | |||||||
| cmd.append(CONTAINER_IMAGE) | cmd.append(CONTAINER_IMAGE) | ||||||
| cmd += remaining_args | cmd += remaining_args | ||||||
|  |  | ||||||
| subprocess.run(cmd) | sys.exit(subprocess.run(cmd).returncode) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user