fix: scripts_dir() 恢復正確路徑 resolve_asset_path('MOMENTRY_SCRIPTS_DIR', 'scripts') → ~/momentry/scripts/
This commit is contained in:
@@ -73,9 +73,7 @@ pub fn demo_dir() -> PathBuf {
|
|||||||
|
|
||||||
/// Get scripts directory
|
/// Get scripts directory
|
||||||
pub fn scripts_dir() -> PathBuf {
|
pub fn scripts_dir() -> PathBuf {
|
||||||
env::var("MOMENTRY_SCRIPTS_DIR")
|
resolve_asset_path("MOMENTRY_SCRIPTS_DIR", "scripts")
|
||||||
.map(PathBuf::from)
|
|
||||||
.unwrap_or_else(|_| momentry_core_dir().join("tools/script"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get CLI tools directory
|
/// Get CLI tools directory
|
||||||
|
|||||||
Reference in New Issue
Block a user