forked from CryHavoc/dottes
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
|
@ -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
|
|
||||||
if args.input:
|
|
||||||
path = pathlib.Path(args.input.name)
|
path = pathlib.Path(args.input.name)
|
||||||
with path.open() as f:
|
with path.open() as f:
|
||||||
res = process(f, path.parent, args)
|
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