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

ntpath.abspath

Up: ntpath | Next: ntpath.basename
Rel: ntpath.basename, ntpath.commonpath, ntpath.commonprefix, ntpath.dirname
Ref: docs.python.org — ntpath.abspath
Tags: #public #python3 #stdlib #ntpath


Import

import ntpath
from ntpath import abspath

Signature & Overview

ntpath.abspath(path)

Return the absolute version of a path.

Usage

import ntpath

assert ntpath.isabs(ntpath.abspath('notes.txt'))

Gotchas

REPL Inspect

from ntpath import abspath
help(abspath)

Linked from

Related notes