MCPcopy Index your code
hub / github.com/nodejs/node / UnixifyPath

Function UnixifyPath

tools/gyp/gyp_main.py:24–34  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

22
23
24def UnixifyPath(path):
25 try:
26 if not IsCygwin():
27 return path
28 out = subprocess.Popen(
29 ["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT
30 )
31 stdout, _ = out.communicate()
32 return stdout.decode("utf-8")
33 except Exception:
34 return path
35
36
37# Make sure we're using the version of pylib in this repo, not one installed

Callers 1

gyp_main.pyFile · 0.85

Calls 2

IsCygwinFunction · 0.70
decodeMethod · 0.65

Tested by

no test coverage detected