On this page
  1. posixpath.realpath
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posixpath.realpath

Prev: posixpath.normpath | Up: posixpath | Next: posixpath.relpath
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.realpath
Tags: #public #python3 #stdlib #posixpath


Import

import posixpath
from posixpath import realpath

Signature & Overview

posixpath.realpath(filename, *, strict=False)

Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.

Usage

import posixpath

assert posixpath.isabs(posixpath.realpath('.'))

Gotchas

REPL Inspect

from posixpath import realpath
help(realpath)

Linked from

Related notes