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

Method home

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

Return a new path pointing to the user's home directory (as returned by os.path.expanduser('~')).

(cls)

Source from the content-addressed store, hash-verified

908
909 @classmethod
910 def home(cls):
911 """Return a new path pointing to the user's home directory (as
912 returned by os.path.expanduser('~')).
913 """
914 return cls("~").expanduser()
915
916 def samefile(self, other_path):
917 """Return whether other_path is the same or not as this file

Callers

nothing calls this directly

Calls 1

expanduserMethod · 0.80

Tested by

no test coverage detected