Skip to main content

run

Function run 

Source
pub fn run(builder: InterpreterBuilder) -> ExitCode
Expand description

The main cli of the rustpython interpreter. This function will return std::process::ExitCode based on the return code of the python code ran through the cli.

Note: This function provides no way to further initialize the VM after the builder is applied. All VM initialization (adding native modules, init hooks, etc.) must be done through the InterpreterBuilder parameter before calling this function.