Mercurial > repos > iuc > meningotype
annotate check_output.py @ 1:7f88b804fc0c draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit ac4610f4f81de5ab3a71fc28cbe3cdb1696ef667
author | iuc |
---|---|
date | Wed, 13 Mar 2024 11:52:59 +0000 |
parents | b5f872c50249 |
children |
rev | line source |
---|---|
0
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env python3 |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
2 |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
3 import argparse |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
4 import sys |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
5 |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
6 if __name__ == '__main__': |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
7 parser = argparse.ArgumentParser() |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
8 parser.add_argument('meningotype_file', type=argparse.FileType()) |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
9 args = parser.parse_args() |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
10 for line in args.meningotype_file: |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
11 if 'ERROR:' in line: |
b5f872c50249
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meningotype commit b4e0bbb9a2a23cbac9137a96d59bc1775c23c8a5
iuc
parents:
diff
changeset
|
12 sys.exit('Found error in meningotype output: ' + line.strip()) |