Expand description
Location-independent model resolution. An installed steeldb binary must find its bundled models
whatever the working directory is — so we search, in priority order: an explicit env override, the
per-user cache (~/.steeldb/models, %LOCALAPPDATA%\steeldb\models), next-to-the-executable
(<exe>/models, and <exe>/../../models for the dev target/<profile>/ layout), then ./models.
Functions§
- model_
dir - Resolve a model sub-directory. An explicit
env_varwins (if it points at a dir containingmarker); otherwise the first<root>/<name>that containsmarker.markeris a file that must exist so we don’t return an empty/partial dir. - model_
roots - Candidate
models/roots, most-preferred first.