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

Method run_any_file

crates/vm/src/vm/python_run.rs:72–75  ·  view source on GitHub ↗
(&self, scope: Scope, path: &str)

Source from the content-addressed store, hash-verified

70 /// Note: This is an internal function. Use `run_file` for the public interface.
71 #[doc(hidden)]
72 pub fn run_any_file(&self, scope: Scope, path: &str) -> PyResult<()> {
73 let path = if path.is_empty() { "???" } else { path };
74 self.run_simple_file(scope, path)
75 }
76
77 /// _PyRun_SimpleFileObject
78 ///

Callers 2

run_fileFunction · 0.80
run_scriptMethod · 0.80

Calls 2

run_simple_fileMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected