From 3de62c543342eb48287f8ef7c5a4dfac4ee9db49 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Tue, 11 Jun 2024 18:04:33 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=EF=BC=8Cmgx=20backend=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metagpt/tools/libs/terminal.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/metagpt/tools/libs/terminal.py b/metagpt/tools/libs/terminal.py index 7b0f124c0..0cc586fc1 100644 --- a/metagpt/tools/libs/terminal.py +++ b/metagpt/tools/libs/terminal.py @@ -20,7 +20,6 @@ class Terminal: self.shell_command = ["bash"] # FIXME: should consider windows support later self.command_terminator = "\n" - env = dict(os.environ) # Start a persistent shell process self.process = subprocess.Popen( self.shell_command, @@ -28,8 +27,7 @@ class Terminal: stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - executable="/bin/bash", - env=env + executable="/bin/bash" ) self.stdout_queue = Queue() self.observer = TerminalReporter()