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

Function getcwd

crates/vm/src/stdlib/os.rs:1481–1483  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1479
1480 #[pyfunction]
1481 fn getcwd(vm: &VirtualMachine) -> PyResult {
1482 Ok(OutputMode::String.process_path(curdir_inner(vm)?, vm))
1483 }
1484
1485 #[pyfunction]
1486 fn getcwdb(vm: &VirtualMachine) -> PyResult {

Callers 2

abspathFunction · 0.85
realpathFunction · 0.85

Calls 2

curdir_innerFunction · 0.85
process_pathMethod · 0.80

Tested by

no test coverage detected