mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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 os
|
||||||
|
import platform
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
@ -9,7 +10,7 @@ import pexpect
|
||||||
def run_cmd(command):
|
def run_cmd(command):
|
||||||
import sys
|
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_pexpect(command)
|
||||||
|
|
||||||
return run_cmd_subprocess(command)
|
return run_cmd_subprocess(command)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue