(*pathelems)
| 87 | |
| 88 | |
| 89 | def find_exe(*pathelems): |
| 90 | path = os.path.join(*pathelems) |
| 91 | |
| 92 | if WINDOWS: |
| 93 | # Should we use PATHEXT environment variable here? |
| 94 | # For now, specify only enough extensions to find llvm / binaryen / emscripten executables. |
| 95 | for ext in ['.exe', '.bat']: |
| 96 | if os.path.isfile(path + ext): |
| 97 | return path + ext |
| 98 | |
| 99 | return path |
| 100 | |
| 101 | |
| 102 | def replace_suffix(filename, new_suffix): |
no test coverage detected