From eac827d9325497e9cca6b10978fbc3ba6989dc34 Mon Sep 17 00:00:00 2001 From: Accusys Date: Tue, 17 Nov 2026 04:31:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20scripts=5Fdir()=20=E6=81=A2=E5=BE=A9?= =?UTF-8?q?=E6=AD=A3=E7=A2=BA=E8=B7=AF=E5=BE=91=20resolve=5Fasset=5Fpath('?= =?UTF-8?q?MOMENTRY=5FSCRIPTS=5FDIR',=20'scripts')=20=E2=86=92=20~/momentr?= =?UTF-8?q?y/scripts/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/path_utils.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/path_utils.rs b/src/core/path_utils.rs index 5eabba01..6deb5d91 100644 --- a/src/core/path_utils.rs +++ b/src/core/path_utils.rs @@ -73,9 +73,7 @@ pub fn demo_dir() -> PathBuf { /// Get scripts directory pub fn scripts_dir() -> PathBuf { - env::var("MOMENTRY_SCRIPTS_DIR") - .map(PathBuf::from) - .unwrap_or_else(|_| momentry_core_dir().join("tools/script")) + resolve_asset_path("MOMENTRY_SCRIPTS_DIR", "scripts") } /// Get CLI tools directory