MCPcopy Create free account
hub / github.com/nodejs/node / _ExtractCLPath

Function _ExtractCLPath

tools/gyp/pylib/gyp/msvs_emulation.py:1151–1157  ·  view source on GitHub ↗

Gets the path to cl.exe based on the output of calling the environment setup batch file, followed by the equivalent of `where`.

(output_of_where)

Source from the content-addressed store, hash-verified

1149
1150
1151def _ExtractCLPath(output_of_where):
1152 """Gets the path to cl.exe based on the output of calling the environment
1153 setup batch file, followed by the equivalent of `where`."""
1154 # Take the first line, as that's the first found in the PATH.
1155 for line in output_of_where.strip().splitlines():
1156 if line.startswith("LOC:"):
1157 return line[len("LOC:") :].strip()
1158
1159
1160def GenerateEnvironmentFiles(

Callers 1

GenerateEnvironmentFilesFunction · 0.85

Calls 1

splitlinesMethod · 0.45

Tested by

no test coverage detected