From 61b8fb3b52c3d66e5901f97ee274c8978f6a0683 Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 4 Oct 2026 16:41:00 +0800 Subject: [PATCH] feat: add models_dir() to path_utils (A-4.2 P3) Purpose: Support health.rs models path resolution Fallback: MOMENTRY_MODELS_DIR or relative to binary Verification: cargo check --lib passes --- src/core/path_utils.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/path_utils.rs b/src/core/path_utils.rs index 8c2f0507..051ea55c 100644 --- a/src/core/path_utils.rs +++ b/src/core/path_utils.rs @@ -35,4 +35,9 @@ pub fn cli_dir() -> PathBuf { /// Get config directory. pub fn config_dir() -> PathBuf { resolve_asset_path("MOMENTRY_CONFIG_DIR", "config") +} + +/// Get models directory. +pub fn models_dir() -> PathBuf { + resolve_asset_path("MOMENTRY_MODELS_DIR", "models") } \ No newline at end of file