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

Function IsCygwin

tools/gyp/gyp_main.py:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def IsCygwin():
13 # Function copied from pylib/gyp/common.py
14 try:
15 out = subprocess.Popen(
16 "uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT
17 )
18 stdout, _ = out.communicate()
19 return "CYGWIN" in stdout.decode("utf-8")
20 except Exception:
21 return False
22
23
24def UnixifyPath(path):

Callers 1

UnixifyPathFunction · 0.70

Calls 1

decodeMethod · 0.65

Tested by

no test coverage detected