refactor: change lib dir.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
liqiang-fit2cloud 2025-11-27 11:21:55 +08:00
parent af9bf0d99c
commit 10b466ba91

View File

@ -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())