Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.
(filename, *, strict=False)
| 410 | # filesystem). |
| 411 | |
| 412 | def realpath(filename, *, strict=False): |
| 413 | """Return the canonical path of the specified filename, eliminating any |
| 414 | symbolic links encountered in the path.""" |
| 415 | filename = os.fspath(filename) |
| 416 | path, ok = _joinrealpath(filename[:0], filename, strict, {}) |
| 417 | return abspath(path) |
| 418 | |
| 419 | # Join two paths, normalizing and eliminating any symbolic links |
| 420 | # encountered in the second path. |
no test coverage detected