Skip to main content

set_config_dir_override

Function set_config_dir_override 

Source
pub fn set_config_dir_override(path: Option<PathBuf>)
Expand description

What: Set or clear the process-wide configuration directory override.

Inputs:

  • path: Some(dir) to use dir as the config root; None to restore default resolution.

Output:

  • None (side effect: subsequent path helpers resolve under the override).

Details:

  • Called once at startup when --config-dir is passed, before logging initializes.
  • Also used by tests to isolate path resolution; ignores a poisoned lock by recovering it.