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

Method _get_cached_binary_name

tools/python/routing/src/utils.py:132–141  ·  view source on GitHub ↗
(self, *, binary, binary_cache_suffix=None)

Source from the content-addressed store, hash-verified

130 raise Exception(f'Error during executing {full_cmd}')
131
132 def _get_cached_binary_name(self, *, binary, binary_cache_suffix=None):
133 binary_path = os.path.join(self.build_dir, f'{binary}_{self.branch}')
134
135 if self.hash is not None:
136 binary_path += f'_{self.hash}'
137
138 if binary_cache_suffix is not None:
139 binary_path += f'_{binary_cache_suffix}'
140
141 return binary_path
142
143 def checkout_to_init_state(self):
144 self.checkout(branch=self.init_branch, hash=self.init_hash)

Callers 2

buildMethod · 0.95
runMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected