From 3afc3d9089c01fdd4ca22dd9605da527933643eb Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 30 Aug 2024 07:27:03 -0700 Subject: [PATCH] just avoid pexpect on windows --- aider/run_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/run_cmd.py b/aider/run_cmd.py index 910b67005..a879e3cad 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -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)