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

Method cwd

Lib/pathlib/__init__.py:925–930  ·  view source on GitHub ↗

Return a new path pointing to the current working directory.

(cls)

Source from the content-addressed store, hash-verified

923
924 @classmethod
925 def cwd(cls):
926 """Return a new path pointing to the current working directory."""
927 cwd = os.getcwd()
928 path = cls(cwd)
929 path._str = cwd # getcwd() returns a normalized path
930 return path
931
932 def resolve(self, strict=False):
933 """

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