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

Function _detect

builders/kotlin.py:44–55  ·  view source on GitHub ↗

Try to detect the kotlinc binary

(env)

Source from the content-addressed store, hash-verified

42
43
44def _detect(env):
45 """ Try to detect the kotlinc binary """
46 try:
47 return env["kotlinc"]
48 except KeyError:
49 pass
50
51 kotlin = env.Detect("kotlinc")
52 if kotlin:
53 return kotlin
54
55 SCons.Warnings.warn(KotlinNotFound, "Could not find kotlinc executable")
56
57
58#

Callers 2

generateFunction · 0.70
existsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected