os._ntpath
Windows string path operations, importable on every target.
Lexical operations follow Python 3.13 Windows path rules. They do not inspect
the filesystem or resolve symlinks. Relative abspath() and relpath() need Windows'
current-directory and per-drive state; on other targets only fully qualified
paths can be resolved. Environment expansion has a mapping-based helper for
host-independent tests.
curdir: Literal[str] = "."
pardir: Literal[str] = ".."
sep: Literal[str] = "\\"
pathsep: Literal[str] = ";"
defpath: Literal[str] = ".;C:\\bin"
extsep: Literal[str] = "."
altsep: Optional[str] = "/"
devnull: Literal[str] = "nul"
isabs(path: str)
splitroot(path: str)
splitdrive(path: str)
join(a: str, *paths)
split(path: str)
dirname(path: str)
basename(path: str)
splitext(path: str)
normcase(path: str)
normpath(path: str)
abspath(path: str)
relpath(path: str, start: str = ".")
commonprefix(paths)
commonpath(paths)
expanduser(path: str)
expandvars(path: str)