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

Function _ConvertToCygpath

tools/gyp/pylib/gyp/MSVSVersion.py:448–453  ·  view source on GitHub ↗

Convert to cygwin path if we are using cygwin.

(path)

Source from the content-addressed store, hash-verified

446
447
448def _ConvertToCygpath(path):
449 """Convert to cygwin path if we are using cygwin."""
450 if sys.platform == "cygwin":
451 p = subprocess.Popen(["cygpath", path], stdout=subprocess.PIPE)
452 path = p.communicate()[0].decode("utf-8").strip()
453 return path
454
455
456def _DetectVisualStudioVersions(versions_to_check, force_express):

Callers 1

Calls 1

decodeMethod · 0.65

Tested by

no test coverage detected