| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,7 +326,7 @@ def _is_path_rooted(path: PathLike) -> bool: | |||
| 326 | 326 | """ | |
| 327 | 327 | drive, tail = osp.splitdrive(os.fspath(path)) | |
| 328 | 328 | separators = (os.sep,) if os.altsep is None else (os.sep, os.altsep) | |
| 329 | - return tail.startswith(separators) or bool(drive) and osp.isabs(path) | ||
| 329 | + return tail.startswith(separators) or drive.startswith(separators) | ||
| 330 | 330 | ||
| 331 | 331 | ||
| 332 | 332 | def _to_relative_path(root: PathLike, path: PathLike) -> str: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments