pub fn find_config_file(relative_path: &str) -> Option<PathBuf>Expand description
What: Find a config file in development and installed locations.
Inputs:
relative_path: Relative path from config directory (e.g., “i18n.yml”)
Output:
Some(PathBuf)pointing to the first existing file found, orNoneif not found
Details:
- Tries locations in order:
- Development location:
CARGO_MANIFEST_DIR/config/{relative_path}(prioritized when running from source) - Installed location:
/usr/share/pacsea/config/{relative_path}
- Development location:
- Development location is checked first to allow working with repo files during development