[][src]Function libimagrt::configuration::fetch_config

pub fn fetch_config(searchpath: &PathBuf) -> Result<Option<Value>>

Get a new configuration object.

The passed runtimepath is used for searching the configuration file, whereas several file names are tested. If that does not work, the home directory and the XDG basedir are tested with all variants.