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

ntpath.isabs

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


Import

import ntpath
from ntpath import isabs

Signature & Overview

ntpath.isabs(s)

Test whether a path is absolute

Usage

import ntpath

assert ntpath.isabs(r'C:\Windows') is True
assert ntpath.isabs('rel\\path') is False

Gotchas

REPL Inspect

from ntpath import isabs
help(isabs)

Linked from

Related notes