def __setup_tool(self): tree = parse_xml(self.tool_file) self.tool = Tool(self.tool_file, tree.getroot(), self.app) if getattr(self, "tool_action", None): self.tool.tool_action = self.tool_action
def __setup_tool(self): tool_source = get_tool_source(self.tool_file) self.tool = Tool(self.tool_file, tool_source, self.app) if getattr(self, "tool_action", None): self.tool.tool_action = self.tool_action return self.tool