Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Remove example

Tomas Valenta0449f0330690
diff --git a/packages/python-sdk/e2b/sandbox/main.py b/packages/python-sdk/e2b/sandbox/main.py
index 982fc6e95..9a45a2032 100644
--- a/packages/python-sdk/e2b/sandbox/main.py
+++ b/packages/python-sdk/e2b/sandbox/main.py
@@ -103,17 +103,8 @@ class Sandbox(SandboxApi):
def upload_url(self) -> str:
url = urllib.parse.urljoin(self._envd_api_url, "/files?")
params = urllib.parse.urlencode(
- {"user": "user"},
+ {"user": "user", "path": ""},
)
url = urllib.parse.urljoin(url, params)
return url
-
-
-sbx = Sandbox()
-
-
-res = sbx.commands.run("ls -l", background=True)
-
-for r in res:
- res.close()