MCPcopy Index your code
hub / github.com/python/cpython / cwd

Method cwd

Lib/pathlib/__init__.py:1123–1128  ·  view source on GitHub ↗

Return a new path pointing to the current working directory.

(cls)

Source from the content-addressed store, hash-verified

1121
1122 @classmethod
1123 def cwd(cls):
1124 """Return a new path pointing to the current working directory."""
1125 cwd = os.getcwd()
1126 path = cls(cwd)
1127 path._str = cwd # getcwd() returns a normalized path
1128 return path
1129
1130 def resolve(self, strict=False):
1131 """

Callers 5

test_cwdMethod · 0.45
fake_venvMethod · 0.45
test_cwdMethod · 0.45
initMethod · 0.45
retrfileMethod · 0.45

Calls 1

clsClass · 0.50

Tested by 3

test_cwdMethod · 0.36
fake_venvMethod · 0.36
test_cwdMethod · 0.36