MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / _detect

Function _detect

builders/cargo.py:13–23  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

11SCons.Warnings.enableWarningClass(ToolCargoWarning)
12
13def _detect(env):
14 try:
15 return env['cargo']
16 except KeyError:
17 pass
18
19 cargo = env.WhereIs('cargo')
20 if cargo:
21 return cargo
22
23 SCons.Warnings.warn(CargoNotFound, 'Could not detect cargo')
24
25def exists(env):
26 return env.Detect('cargo')

Callers 1

generateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected