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

Function _detect

builders/go.py:12–22  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

10SCons.Warnings.enableWarningClass(ToolGoWarning)
11
12def _detect(env):
13 try:
14 return env['go']
15 except KeyError:
16 pass
17
18 go = env.WhereIs('go')
19 if go:
20 return go
21
22 SCons.Warnings.warn(GoNotFound, 'Could not find go executable')
23
24def exists(env):
25 env.Detect('go')

Callers 1

generateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected