mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update globals_v initialization to use an empty dictionary in tool_code.py
This commit is contained in:
parent
c32a76335d
commit
bba5f9b3d6
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue