Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix filesystem path warning

Jakub Novak7f12306ca7d0
diff --git a/packages/python-sdk/e2b/utils/filesystem.py b/packages/python-sdk/e2b/utils/filesystem.py
index ace99e839..b301e565e 100644
--- a/packages/python-sdk/e2b/utils/filesystem.py
+++ b/packages/python-sdk/e2b/utils/filesystem.py
@@ -5,7 +5,7 @@ from typing import Optional
def resolve_path(path: str, cwd: Optional[str] = None) -> str:
- warning = f"Path starts with %()s and cwd isn't set. The path {path} will evaluate to `%()s`, which may not be what you want."
+ warning = f"Path starts with {{0}} and cwd isn't set. The path {path} will evaluate to `{{1}}`, which may not be what you want."
if path.startswith("./"):
result = PurePosixPath(cwd or "/home/user", path).as_posix()
if not cwd: