a3c3ed8dc1ef445291480e9037502c8b2956d8e9
- Add src/core/path_utils.rs with runtime path resolution helpers
- Replace all env!("CARGO_MANIFEST_DIR") with runtime resolution
- Priority: env var -> current_exe sibling -> dev fallback
Changes:
- executor.rs: scripts_dir(), cli_dir() (4 locations)
- face.rs: swift_processor_path()
- tool_selector.rs: swift_binary_path()
- thumbnail/mod.rs: script_path()
Issue: CARGO_MANIFEST_DIR expands to build machine path at compile time,
breaking on binary-only release hosts.
Solution: Resolve paths at runtime in this order:
1. Explicit environment variable (MOMENTRY_SCRIPTS_DIR, MOMENTRY_CLI_DIR)
2. Sibling of current_exe (same directory as running binary)
3. Relative path fallback (dev machine)
Verified: cargo check --lib passes
momentry_core
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Description
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Releases
2
v0.9.20260325_151200
Latest
Languages
PLpgSQL
30.5%
Python
27.4%
HTML
20.4%
Rust
13.3%
Shell
3.1%
Other
5.2%