koto_bytecode

Function find_module

Source
pub fn find_module(
    module_name: &str,
    current_script_path: Option<&Path>,
) -> Result<PathBuf, ModuleLoaderError>
Expand description

Finds a module that matches the given name

The current_script_path argument gives a location to start searching from, if None is provided then std::env::current_dir will be used instead.