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

Method run_script

crates/vm/src/vm/python_run.rs:124–126  ·  view source on GitHub ↗

#[deprecated(note = "use rustpython::run_file instead; if this changes causes problems, please report an issue.")]

(&self, scope: Scope, path: &str)

Source from the content-addressed store, hash-verified

122
123 // #[deprecated(note = "use rustpython::run_file instead; if this changes causes problems, please report an issue.")]
124 pub fn run_script(&self, scope: Scope, path: &str) -> PyResult<()> {
125 self.run_any_file(scope, path)
126 }
127 }
128
129 fn set_main_loader(

Callers

nothing calls this directly

Calls 1

run_any_fileMethod · 0.80

Tested by

no test coverage detected