mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
just avoid pexpect on windows
This commit is contained in:
parent
725b06acd6
commit
3afc3d9089
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
from io import BytesIO
|
||||
|
@ -9,7 +10,7 @@ import pexpect
|
|||
def run_cmd(command):
|
||||
import sys
|
||||
|
||||
if sys.stdin.isatty() and hasattr(pexpect, "spawn"):
|
||||
if sys.stdin.isatty() and hasattr(pexpect, "spawn") and platform.system() != "Windows":
|
||||
return run_cmd_pexpect(command)
|
||||
|
||||
return run_cmd_subprocess(command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue