Skip to main content

Module paths

Module paths 

Source
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_var wins (if it points at a dir containing marker); otherwise the first <root>/<name> that contains marker. marker is a file that must exist so we don’t return an empty/partial dir.
model_roots
Candidate models/ roots, most-preferred first.