MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / get_tool

Method get_tool

client/tool/util/loong/bcparser.py:34–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self.bc_db = os.path.join(source_dir, "codedog_bc.db")
33
34 def get_tool(self):
35 tool_home = os.environ["LOONG_HOME"]
36 tool_path = os.path.join(tool_home, "bin", settings.PLATFORMS[sys.platform], "APIFinder2")
37 if settings.PLATFORMS[sys.platform] == "windows":
38 tool_path = f"{tool_path}.exe"
39 return tool_path
40
41 def parser(self, need_field=False):
42 tool_path = self.get_tool()

Callers 1

parserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected