(path)
| 22 | |
| 23 | |
| 24 | def 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 |
no test coverage detected