mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix pexpect logic
This commit is contained in:
parent
9b4ee190ba
commit
6e2a423686
1 changed files with 3 additions and 6 deletions
|
@ -9,13 +9,10 @@ import pexpect
|
|||
def run_cmd(command):
|
||||
import sys
|
||||
|
||||
if not sys.stdin.isatty():
|
||||
return run_cmd_subprocess(command)
|
||||
if sys.stdin.isatty() and hasattr(pexpect, "spawn"):
|
||||
return run_cmd_pexpect(command)
|
||||
|
||||
if hasattr(pexpect, "spawn"):
|
||||
return run_cmd_subprocess(command)
|
||||
|
||||
return run_cmd_pexpect(command)
|
||||
return run_cmd_subprocess(command)
|
||||
|
||||
|
||||
def run_cmd_subprocess(command):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue