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

Method get_tool

client/tool/util/loong/astparser.py:36–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.want_suffix = (".java", ".jar")
35
36 def get_tool(self):
37 tool_home = os.environ["LOONG_HOME"]
38 tool_path = os.path.join(tool_home, "bin", settings.PLATFORMS[sys.platform], "JAP")
39 if settings.PLATFORMS[sys.platform] == "windows":
40 tool_path = f"{tool_path}.exe"
41 return tool_path
42
43 def parser(self):
44 tool_path = self.get_tool()

Callers 1

parserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected