From ed7006c690f9adce13c4865e2e95790f44169c97 Mon Sep 17 00:00:00 2001 From: Machinexa2 <60662297+machinexa2@users.noreply.github.com> Date: Mon, 10 Aug 2020 15:25:38 +0545 Subject: [PATCH] fix for https://github.com/codingo/Interlace/issues/109 fix for https://github.com/codingo/Interlace/issues/109 --- Interlace/lib/core/input.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 0eb096b..c058750 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -252,8 +252,9 @@ class InputHelper(object): ranges.add(arguments.target) else: target_file = arguments.target_list - if not sys.stdin.isatty(): - target_file = sys.stdin + if not os.path.exists(target_file): + if not sys.stdin.isatty(): + target_file = sys.stdin ranges.update([target.strip() for target in target_file if target.strip()]) # process exclusions first