Merge pull request #92 from DuckPaddle/patch-6
Update utils.py to get_cli_input Line 192
This commit is contained in:
commit
203a8f32ed
@ -189,7 +189,7 @@ class Standalone:
|
|||||||
system = platform.system()
|
system = platform.system()
|
||||||
if system == 'Windows':
|
if system == 'Windows':
|
||||||
if not sys.stdin.isatty(): # Check if input is being piped
|
if not sys.stdin.isatty(): # Check if input is being piped
|
||||||
return sys.stdin.readline().strip() # Read piped input
|
return sys.stdin.read().strip() # Read piped input
|
||||||
else:
|
else:
|
||||||
return input("Enter Question: ") # Prompt user for input from console
|
return input("Enter Question: ") # Prompt user for input from console
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user