Skip to main content

script_dir_push

Function script_dir_push 

Source
pub fn script_dir_push(dir: &Path)
Expand description

Push a script directory onto the search stack.

Call this before executing a top-level script file so that run()/source() calls inside the script can find helper files by bare name relative to the script’s directory. Always paired with a matching script_dir_pop.