Function rhai::run_file

source ·
pub fn run_file(path: impl AsRef<Path>) -> Result<(), Box<EvalAltResult>>
Expand description

Evaluate a file.

Not available under no_std or WASM.

Example

rhai::run_file("script.rhai")?;