Try to detect the kotlinc binary
(env)
| 42 | |
| 43 | |
| 44 | def _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 | # |