Merge pull request #111 from machinexa2/patch-3

fix for https://github.com/codingo/Interlace/issues/109
This commit is contained in:
Michael Skelton
2020-08-30 14:55:39 +10:00
committed by GitHub

View File

@@ -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