(vm: &vm::VirtualMachine)
| 5 | } |
| 6 | |
| 7 | fn run(vm: &vm::VirtualMachine) -> vm::PyResult<()> { |
| 8 | let scope = vm.new_scope_with_builtins(); |
| 9 | |
| 10 | // the file parameter is relative to the current file. |
| 11 | let module = vm::py_compile!(file = "freeze.py"); |
| 12 | |
| 13 | let res = vm.run_code_obj(vm.ctx.new_code(module), scope); |
| 14 | |
| 15 | if let Err(exc) = res { |
| 16 | vm.print_exception(exc); |
| 17 | } |
| 18 | |
| 19 | Ok(()) |
| 20 | } |
nothing calls this directly
no test coverage detected