MCPcopy Index your code
hub / github.com/RustPython/RustPython / home

Method home

Lib/pathlib/__init__.py:1256–1262  ·  view source on GitHub ↗

Return a new path pointing to expanduser('~').

(cls)

Source from the content-addressed store, hash-verified

1254
1255 @classmethod
1256 def home(cls):
1257 """Return a new path pointing to expanduser('~').
1258 """
1259 homedir = os.path.expanduser("~")
1260 if homedir == "~":
1261 raise RuntimeError("Could not determine home directory.")
1262 return cls(homedir)
1263
1264 def as_uri(self):
1265 """Return the path as a URI."""

Callers 1

test_homeMethod · 0.80

Calls 2

expanduserMethod · 0.80
clsClass · 0.50

Tested by 1

test_homeMethod · 0.64