MCPcopy Create free account
hub / github.com/comaps/comaps / run_async

Method run_async

tools/python/maps_generator/generator/gen_tool.py:119–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 return self
118
119 def run_async(self):
120 assert self.subprocess is None, "You forgot to call wait()"
121 cmd = self._collect_cmd()
122 self.subprocess = subprocess.Popen(
123 cmd, stdout=self.output, stderr=self.error, env=os.environ
124 )
125
126 self.logger.info(
127 f"Run generator tool [{self.get_build_version()}]:" f" {' '.join(cmd)} "
128 )
129 return self
130
131 def wait(self):
132 code = self.subprocess.wait()

Callers 1

runMethod · 0.95

Calls 3

_collect_cmdMethod · 0.95
get_build_versionMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected