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

Method get_build_version

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

Source from the content-addressed store, hash-verified

143 return c
144
145 def get_build_version(self):
146 p = subprocess.Popen(
147 [self.name_executable, "--version"],
148 stdout=subprocess.PIPE,
149 stderr=subprocess.PIPE,
150 env=os.environ,
151 )
152 wait_and_raise_if_fail(p)
153 out, err = p.communicate()
154 return out.decode("utf-8").replace("\n", " ").strip()
155
156 def _collect_cmd(self):
157 options = ["".join(["--", k, "=", str(v)]) for k, v in self.options.items()]

Callers 1

run_asyncMethod · 0.95

Calls 1

wait_and_raise_if_failFunction · 0.90

Tested by

no test coverage detected