Replacement for os.path.isabs.
(path)
| 175 | |
| 176 | if _MS_WINDOWS: |
| 177 | def _path_isabs(path): |
| 178 | """Replacement for os.path.isabs.""" |
| 179 | if not path: |
| 180 | return False |
| 181 | root = _os._path_splitroot(path)[0].replace('/', '\\') |
| 182 | return len(root) > 1 and (root.startswith('\\\\') or root.endswith('\\')) |
| 183 | |
| 184 | else: |
| 185 | def _path_isabs(path): |
no test coverage detected
searching dependent graphs…