Skip to content

Commit ca5b5d1

Browse files
committed
🎨自定义工具给ToolLoader直接传工具名,不需要要转换成customtool(ToolLoader类后续会处理)
1 parent 206b1f1 commit ca5b5d1

9 files changed

Lines changed: 1 addition & 8 deletions

client/node/localtask/taskprocessmgr.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,7 @@ def get_supported_processes(origin_os_env, task_name, task_params, custom_tools)
5757
# 加载工具执行需要的环境变量
5858
task_params["tool_name"] = task_name
5959
task_list = ConfigUtil.generate_task_list(task_params)
60-
if ConfigUtil.use_new_tool_lib_config(task_params): # 使用依赖库配置
61-
tool_names = [task_name]
62-
else: # 使用ini配置
63-
if task_name in custom_tools:
64-
tool_names = ["customtool"]
65-
else:
66-
tool_names = [task_name]
67-
ToolLoader(tool_names=tool_names, task_list=task_list, custom_tools=custom_tools,
60+
ToolLoader(tool_names=[task_name], task_list=task_list, custom_tools=custom_tools,
6861
include_common=True).set_tool_env()
6962

7063
# 加载任务环境变量
-512 Bytes
Binary file not shown.
-11.1 KB
Binary file not shown.
-157 KB
Binary file not shown.
-10.1 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-316 KB
Binary file not shown.
-184 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)