MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / abspath

Function abspath

tools/python-3.11.9-amd64/Lib/ntpath.py:570–575  ·  view source on GitHub ↗

Return the absolute version of a path.

(path)

Source from the content-addressed store, hash-verified

568
569else: # use native Windows method on Windows
570 def abspath(path):
571 """Return the absolute version of a path."""
572 try:
573 return _getfullpathname(normpath(path))
574 except (OSError, ValueError):
575 return _abspath_fallback(path)
576
577try:
578 from nt import _getfinalpathname, readlink as _nt_readlink

Calls 2

_abspath_fallbackFunction · 0.85
normpathFunction · 0.70