ID EN
OS Path

abspath

Python 3.11

Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent to calling the function normpath() as follows: normpath(join(os.getcwd(), path)).

Syntax

PYTHON
os.path.abspath(path)

See Also

normpath() path-like object