Skip to main content

use_directory

Function use_directory 

Source
pub fn use_directory(dir: &Path) -> Result<(), ConfigError>
Expand description

Reads the catalogue from a directory in place of the compiled-in one, for the rest of the process: a copy of catalog/ (its own repository, or a newer edition of it). Every table the simulator reads must be there, and catalog.toml must have the schema_version this simulator reads. Call it before any part is looked up; a second call is refused.