From 10b466ba916aab0a25e9b99095dec76c93339958 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 27 Nov 2025 11:21:55 +0800 Subject: [PATCH] refactor: change lib dir. --- apps/common/utils/tool_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/utils/tool_code.py b/apps/common/utils/tool_code.py index 258f75670..f4fd3d748 100644 --- a/apps/common/utils/tool_code.py +++ b/apps/common/utils/tool_code.py @@ -74,7 +74,7 @@ class ToolExecutor: with open(sandbox_conf_file_path, "w") as f: f.write(f"SANDBOX_PYTHON_BANNED_HOSTS={banned_hosts}\n") f.write(f"SANDBOX_PYTHON_ALLOW_SUBPROCESS={allow_subprocess}\n") - os.system(f"chmod -R g-wx {sandbox_lib_path}") + os.system(f"chmod -R 550 {sandbox_lib_path}") def exec_code(self, code_str, keywords): _id = str(uuid.uuid7())