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

Method absolute

tools/python-3.11.9-amd64/Lib/pathlib.py:971–979  ·  view source on GitHub ↗

Return an absolute version of this path by prepending the current working directory. No normalization or symlink resolution is performed. Use resolve() to get the canonical path to a file.

(self)

Source from the content-addressed store, hash-verified

969 yield p
970
971 def absolute(self):
972 """Return an absolute version of this path by prepending the current
973 working directory. No normalization or symlink resolution is performed.
974
975 Use resolve() to get the canonical path to a file.
976 """
977 if self.is_absolute():
978 return self
979 return self._from_parts([self.cwd()] + self._parts)
980
981 def resolve(self, strict=False):
982 """

Callers

nothing calls this directly

Calls 3

cwdMethod · 0.95
is_absoluteMethod · 0.80
_from_partsMethod · 0.80

Tested by

no test coverage detected