Replacement for os.path.abspath.
(path)
| 188 | |
| 189 | |
| 190 | def _path_abspath(path): |
| 191 | """Replacement for os.path.abspath.""" |
| 192 | if not _path_isabs(path): |
| 193 | for sep in path_separators: |
| 194 | path = path.removeprefix(f".{sep}") |
| 195 | return _path_join(_os.getcwd(), path) |
| 196 | else: |
| 197 | return path |
| 198 | |
| 199 | |
| 200 | def _write_atomic(path, data, mode=0o666): |
no test coverage detected
searching dependent graphs…