Skip to content

Commit d715b1a

Browse files
committed
Set mode to rw
1 parent 2aac2eb commit d715b1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

safeexecute/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def execute_python_code(code: str, working_directory: str) -> str:
4343
volumes={
4444
os.path.abspath(working_directory): {
4545
"bind": "/workspace",
46-
"mode": "ro",
46+
"mode": "rw",
4747
}
4848
},
4949
working_dir="/workspace",
@@ -61,7 +61,7 @@ async def execute_python_code(code: str, working_directory: str) -> str:
6161
volumes={
6262
os.path.abspath(working_directory): {
6363
"bind": "/workspace",
64-
"mode": "ro",
64+
"mode": "rw",
6565
}
6666
},
6767
working_dir="/workspace",

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.3",
11+
version="0.0.4",
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)