MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / find_exe

Function find_exe

tools/utils.py:89–99  ·  view source on GitHub ↗
(*pathelems)

Source from the content-addressed store, hash-verified

87
88
89def 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
102def replace_suffix(filename, new_suffix):

Callers 1

exe_path_from_rootFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected