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

Function curdir_inner

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

Source from the content-addressed store, hash-verified

1474 }
1475
1476 fn curdir_inner(vm: &VirtualMachine) -> PyResult<PathBuf> {
1477 env::current_dir().map_err(|err| err.into_pyexception(vm))
1478 }
1479
1480 #[pyfunction]
1481 fn getcwd(vm: &VirtualMachine) -> PyResult {

Callers 2

getcwdFunction · 0.85
getcwdbFunction · 0.85

Calls 1

into_pyexceptionMethod · 0.45

Tested by

no test coverage detected