Remove vestiges of support for stdin input to abcfield.py.
I'm not using it, and it complicates things a bit.
This commit is contained in:
parent
5622d5d239
commit
f267b21c21
10
abcfield.py
10
abcfield.py
|
@ -285,11 +285,7 @@ if __name__ == "__main__":
|
||||||
help='input ABC file')
|
help='input ABC file')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
res = False
|
path = pathlib.Path(args.input.name)
|
||||||
if args.input:
|
with path.open() as f:
|
||||||
path = pathlib.Path(args.input.name)
|
res = process(f, path.parent, args)
|
||||||
with path.open() as f:
|
|
||||||
res = process(f, path.parent, args)
|
|
||||||
else:
|
|
||||||
res = process(sys.stdin, ".", args)
|
|
||||||
sys.exit(int(not res))
|
sys.exit(int(not res))
|
||||||
|
|
Loading…
Reference in New Issue