From e05c4b9d3f69c86052617a009abcd6573a778e45 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 2 Sep 2018 22:36:49 +0200 Subject: ave-resolution: Accept - for stdin --- scripts/ave-resolution | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/ave-resolution b/scripts/ave-resolution index 69c21195..370b3889 100755 --- a/scripts/ave-resolution +++ b/scripts/ave-resolution @@ -14,7 +14,11 @@ import sys import numpy import matplotlib.pyplot as plt -f = open(sys.argv[1]) +if sys.argv[1] == '-': + f = sys.stdin +else: + f = open(sys.argv[1]) + a = [] while True: -- cgit v1.2.3