Skip to content

Commit 5a06cfe

Browse files
committed
Remove ls
1 parent e8788c2 commit 5a06cfe

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

safeexecute/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ def execute_python_code(code: str, working_directory: str = None) -> str:
7171
stdout=True,
7272
detach=True,
7373
)
74-
# Print the contents of the working directory inside the container
75-
content = container.exec_run(["ls", "-l", "/workspace"])
76-
print(
77-
"Contents of /workspace inside the container:",
78-
content.output.decode("utf-8"),
79-
)
8074
container.wait()
8175
logs = container.logs().decode("utf-8")
8276
container.remove()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="safeexecute",
11-
version="0.0.7",
11+
version="0.0.8",
1212
description="Safe way to execute Python code with containerization.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)