(self)
| 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() |