feat: set current working directory for sandbox execution

This commit is contained in:
CaptainB 2025-12-03 11:23:06 +08:00
parent 68a7a0f4dc
commit ec238b7132

View File

@ -210,6 +210,7 @@ exec({dedent(code)!a})
'-c',
f'import base64,gzip; exec(gzip.decompress(base64.b64decode(\'{compressed_and_base64_encoded_code_str}\')).decode())',
],
'cwd': self.sandbox_path,
'env': {
'LD_PRELOAD': self.sandbox_so_path,
},