(self)
| 41 | return tool_path |
| 42 | |
| 43 | def parser(self): |
| 44 | tool_path = self.get_tool() |
| 45 | args = [ |
| 46 | "path=%s" % self.project_root, |
| 47 | "thread=%s" % cpu_count(), |
| 48 | "data=%s" % self.ast_db, |
| 49 | ] |
| 50 | astparser_cmd = __lu__().format_cmd(tool_path, args) |
| 51 | SubProcController(astparser_cmd, stdout_line_callback=subprocc_log, stderr_line_callback=subprocc_log).wait() |
| 52 | |
| 53 | |
| 54 | if __name__ == "__main__": |