import os,sys #--------read tool_conf.xml.sample to get all the tool xml file names----------- onoff = 1 tool_list = [] for line in open("tool_conf.xml.sample", "r"): if line.find("") != -1: onoff =1 #-------read tool info from every tool xml file-------------------------- name = [] id = [] desc = [] tool_infos = [] for tool in tool_list : if tool.find("section")!=-1 : tool_info = dict() tool_info["id"] = tool tool_infos.append(tool_info) if os.path.exists("tools/"+tool) : for line in open("tools/"+tool) : if line.find("