mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: change lib dir.
This commit is contained in:
parent
af9bf0d99c
commit
10b466ba91
|
|
@ -74,7 +74,7 @@ class ToolExecutor:
|
|||
with open(sandbox_conf_file_path, "w") as f:
|
||||
f.write(f"SANDBOX_PYTHON_BANNED_HOSTS={banned_hosts}\n")
|
||||
f.write(f"SANDBOX_PYTHON_ALLOW_SUBPROCESS={allow_subprocess}\n")
|
||||
os.system(f"chmod -R g-wx {sandbox_lib_path}")
|
||||
os.system(f"chmod -R 550 {sandbox_lib_path}")
|
||||
|
||||
def exec_code(self, code_str, keywords):
|
||||
_id = str(uuid.uuid7())
|
||||
|
|
|
|||
Loading…
Reference in New Issue