From 71426f81e16f914a4c9a8dfbf85045b8192727da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sat, 21 Oct 2017 16:21:08 +0200 Subject: [PATCH] Add read from pipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SSnR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSnR.py b/SSnR.py index 0e659e4..9d21328 100755 --- a/SSnR.py +++ b/SSnR.py @@ -94,8 +94,8 @@ def main(): string = args["string"] is_file = False else: - print("Error: You need an input string or file") - return -1 + string = sys.stdin.read() + is_file = False # Get output output_files = []