fix: update globals_v initialization to use an empty dictionary in tool_code.py

v3.2
CaptainB 2025-11-06 17:18:23 +08:00
parent 0bd9e170fb
commit 806393f28c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ try:
sys.path += {python_paths}
locals_v={'{}'}
keywords={keywords}
globals_v=globals()
globals_v={'{}'}
exec({dedent(code_str)!a}, globals_v, locals_v)
f_name, f = locals_v.popitem()
for local in locals_v: