Returns the path to the configuration file (`config.json`) within the resolved data directory.
(project_root: &Path)
| 396 | /// Returns the path to the configuration file (`config.json`) within the |
| 397 | /// resolved data directory. |
| 398 | pub fn get_config_path(project_root: &Path) -> PathBuf { |
| 399 | if let Ok(layout) = crate::storage::resolve_layout_for_current_profile(project_root) { |
| 400 | return layout.config_path; |
| 401 | } |
| 402 | get_tracedecay_dir(project_root).join(CONFIG_FILENAME) |
| 403 | } |
| 404 | |
| 405 | /// Loads the configuration from disk. |
| 406 | /// |