(vm: &VirtualMachine)
| 700 | |
| 701 | #[pyattr] |
| 702 | fn path(vm: &VirtualMachine) -> Vec<PyObjectRef> { |
| 703 | vm.state |
| 704 | .config |
| 705 | .paths |
| 706 | .module_search_paths |
| 707 | .iter() |
| 708 | .map(|path| vm.ctx.new_str(path.clone()).into()) |
| 709 | .collect() |
| 710 | } |
| 711 | |
| 712 | #[pyattr] |
| 713 | const fn path_hooks(_vm: &VirtualMachine) -> Vec<PyObjectRef> { |