()
| 10 | |
| 11 | |
| 12 | def 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 | |
| 24 | def UnixifyPath(path): |