mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-25 09:55:25 +08:00
style(tools): format the sandbox interpreter and skill tool changes with ruff
This commit is contained in:
@@ -757,10 +757,7 @@ class NativeToolLoader(loader.ToolLoader):
|
||||
# Sandbox images built from a host rootfs may only ship `python3`, and a
|
||||
# read-only /usr prevents creating a `python` shim inside the jail, so
|
||||
# resolve the interpreter instead of assuming its name.
|
||||
command = (
|
||||
'PYTHON_BIN=$(command -v python3 || command -v python); '
|
||||
f"\"$PYTHON_BIN\" - <<'PY'\n{script}\nPY"
|
||||
)
|
||||
command = f'PYTHON_BIN=$(command -v python3 || command -v python); "$PYTHON_BIN" - <<\'PY\'\n{script}\nPY'
|
||||
result = await self.ap.box_service.execute_tool(
|
||||
{
|
||||
'command': command,
|
||||
|
||||
Reference in New Issue
Block a user