diff --git a/patator.py b/patator.py index 028d3cf..485a163 100755 --- a/patator.py +++ b/patator.py @@ -2234,7 +2234,7 @@ Please read the README inside for more examples and usage information. else: i, _, _ = select([sys.stdin], [], [], .1) - if not i: + if not i or not sys.stdin.isatty(): return None command = i[0].readline().strip()