MCPcopy Create free account
hub / github.com/alibaba/BladeDISC / which

Function which

scripts/python/common_setup.py:174–181  ·  view source on GitHub ↗

Same as `which` command of bash.

(cmd)

Source from the content-addressed store, hash-verified

172
173
174def which(cmd):
175 """Same as `which` command of bash."""
176 from distutils.spawn import find_executable
177
178 found = find_executable(cmd)
179 if not found:
180 raise Exception("failed to find command: " + cmd)
181 return found
182
183
184@contextmanager

Callers 4

configure_compilerFunction · 0.90
configure_bridgeFunction · 0.90
config_mkldnnFunction · 0.70
_deduce_from_nvccFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected