From 76fe4966d139fd79d90bef7f9fb345a509df7485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=9B=B7?= Date: Sat, 13 Apr 2024 11:56:15 +0000 Subject: [PATCH] Update terminal.py default executable bash --- metagpt/tools/libs/terminal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metagpt/tools/libs/terminal.py b/metagpt/tools/libs/terminal.py index e8b3043ab..dc395e89b 100644 --- a/metagpt/tools/libs/terminal.py +++ b/metagpt/tools/libs/terminal.py @@ -22,11 +22,13 @@ class Terminal: # Start a persistent shell process self.process = subprocess.Popen( self.shell_command, + shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1, # Line buffered + executable="/bin/bash" ) self.stdout_queue = Queue()